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 一段时间,然后在某个时候它开始抛出上述错误。
我重新启动了服务器,只是为了 'see',因此上面的代码片段没有显示成功的尝试。但是您可以将DB loaded from disk其视为一个指标。
对此的任何直接帮助,或者进一步阅读与此相关的有用主题,我们将不胜感激。
谢谢