-
Notifications
You must be signed in to change notification settings - Fork 466
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
DUMP command error with list #2253
Comments
@krizald Thanks for your report, I can confirm it works well in Redis7 but didn't work in Redis 6. Will investigate the reason while I get time. |
@krizald Kvrocks now is using |
@krizald @git-hulk The dump and restore commands themselves are inherently incompatible between different RDB versions. You can take a look at this code: https://github.com/redis/redis/blob/804110a487f048669aa9d9412e5789ec43f4fe39/src/cluster.c#L107" The current KVRocks`s |
@AntiTopQuark Thanks for your reply. For the DUMP command, it'd be better to support more Redis versions(at least since from Redis 4.0). And I have changed the RDB version to 6 in PR #2252, this issue should be caused by using the encoding |
Due to the fact that kvrocks does not support some compression encodings, the result of the |
I tested with the most recent unstable KVRocks and Redis 6,2. String/Hashset/Set are ok. But dumping list is failed, when restore in Redis. KV Rocks Server Info
Redis Server Info
Here is the script I use to test list
Error message: (error) ERR Bad data format |
@krizald Thanks for your detailed report. Then I know the root cause now and will fix it when I get time. @AntiTopQuark is also welcome to contribute if you're interested. |
@git-hulk If you haven't started yet, I can accept this task |
@AntiTopQuark Very much appreciate your offer. I'm still working on the controller and not start yet. Welcome to take this issue. |
Search before asking
Version
OS: Debian 11 bulleye
KV Rocks: unstable, git_sha1:4ecb35b9
Redis: 6.2.10
Minimal reproduce step
Redis service: localhost:6381
KV Rocks: localhost:7381
Start Redis 6.2 with attached dump.rdb
dump.zip
Dump Key "ABCD" , which is a list, from Redis to a local file
What did you expect to see?
Restore to Redis with KV Rocks dump should be successful
What did you see instead?
Restore to Redis with KV Rocks dump is failed. Error message:
(error) ERR Bad data format
Anything Else?
I attached 2 dump files. KV Rocks dump size is way bigger than the Redis one
ABCD_dump.zip
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: