-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERR Corruption: Corrupted compressed block contents: Snappy #788
Comments
@corningsun Thanks for your feedback. This issue looks like the same with #607, you can have a try at installing snappy. But I think it should a bug even it works after installing the snappy since we expected to static link the snappy. |
[root@VM-24-10-centos ~]# yum install snappy |
@corningsun Can you paste the output of And output like below was expected:
|
[root@VM-24-10-centos build]# ldd ./kvrocks |
hmmmm, I don't know why it happens and need to reproduce on my side later. You can try to uninstall the snappy library and rebuild the source from scratch again. |
@corningsun I can reproduce it on CentOS 7 but need more time to investigate the root cause. You can workaround by switching BTW: @PragmaTwice I'm not sure whether current snappy library has any difference with old cmake way, can help me out if you have any clues. |
Currently no, but I will try to reproduce it and see what happened. |
Thanks @PragmaTwice, I used the |
|
@corningsun I found it's caused by the newer version(v1.1.9) snappy didn't work right with RocksDB. I have submitted #790 to fix it but didn't have time to study and investigate what happens in the snappy library. You can also help to try and confirm this fix if you don't mind. cc @PragmaTwice |
@git-hulk snappy v1.1.7 works fine. With branch
|
@corningsun Many thanks to your kind check. |
Search before asking
Version
2.1
Minimal reproduce step
1 build kvrocks with branch 2.1
2 start kvrocks cluster (One Master)
3 set cluster nodes
4 put random key and value to redis
eg: use jedis client。
I have test other ways like RedisShake and got the same error.
nohup java -jar kvorcks-test-1.0-SNAPSHOT.jar 10000000 10 > test.log 2>&1 &
What did you expect to see?
put all 10,000,000 random key/value to redis success
What did you see instead?
run well at first, bu after set about 4,000,000 keys, then set any key to redis will got ERROR
(error) ERR Corruption: Corrupted compressed block contents: Snappy
kvrocks.INFO
fileAnything Else?
CentOS Linux release 7.9.2009 (Core)
Linux version 3.10.0-1127.19.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Tue Aug 25 17:23:54 UTC 2020
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: