对 Redis 相当陌生(3 天,哈哈),总体来说一切正常,但出现此错误。
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 5.0.7 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 53149
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
53149:M 18 Jan 2020 21:02:34.415 # Server initialized
53149:M 18 Jan 2020 21:02:34.426 * Module 'timeseries' loaded from /Users/ash/RedisTimeSeries/bin/macosx-x64-release/redistimeseries.so
53149:M 18 Jan 2020 21:02:35.238 * DB loaded from disk: 0.812 seconds
53149:M 18 Jan 2020 21:02:35.238 * Ready to accept connections
53149:M 18 Jan 2020 21:11:40.475 * Background saving started by pid 53691
Assertion failed: (leading + blocksize <= BINW), function readV, file gorilla.c, line 432.
53149:M 18 Jan 2020 21:11:40.630 # Background saving terminated by signal 6
根据我在 Stackoverflow 上阅读的先前问题的答案,我已经将 rdb 文件的位置更改为可写位置。
事实上,我的脚本成功地重复执行 BGSAVE 一段时间,然后在某个点它开始抛出上述错误。
我重新启动了服务器,只是为了“查看”,因此上面的代码片段没有显示成功的尝试。但是您可以看到从磁盘加载数据库
作为这一点的指示器。
如果您直接提供任何帮助,或者进一步阅读与此相关的有用主题,我们将不胜感激。
谢谢
最佳答案
关于python - REDIS BGSAVE 断言失败,由信号 6 终止。(macos/python),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59805009/