redis-rdb-tools icon indicating copy to clipboard operation
redis-rdb-tools copied to clipboard

Redis 7 support

Open Nanciico opened this issue 2 years ago • 12 comments

Support to analyze RDB version 10.

Be able to decode listpack object to hash,zset. Be able to decode quicklist object to list, stream.

Nanciico avatar Mar 31 '23 10:03 Nanciico

Thank you for filling that void. Although this project is kinda dead, maybe we should make a release with this to ease the pain on everyone that's missing this.

Before i try to find time to take a deeper look. is there anything you're aware that's still missing for Redis 7.0 support?

p.s. maybe while at it, you can also handle Redis 7.2 support (listpack used for sets as well)

oranagra avatar Apr 02 '23 09:04 oranagra

Rethinking my previous statement, considering this project is abandoned, merging PRs and making a new release could make the wrong impression and can cause someone to think it's alive and build new solutions based on it, which would be a shame.

The main reason i wanted to merge this was that AFAIK there's currently a vacuum around that area, and no tools that can handle Redis 7.0 RDB files. The project of an official RDB parsing library (https://github.com/redis/redis/issues/11122) would still take time to be ready, and i wanted to give people something useful in the meanwhile...

However, i now took another look at redis-rdb-cli, and it seems it closed that gap and is now able to read listpacks and redis 7.0 RDB files. @leonchen83 please correct me if i'm wrong.

some evidence: https://github.com/leonchen83/redis-rdb-cli/blob/0780f0082cd22766496dded9d7e69fc916d0fdde/src/main/java/com/moilioncircle/redis/rdb/cli/ext/rct/KeyValRdbVisitor.java#L384 https://github.com/leonchen83/redis-rdb-cli/blob/0780f0082cd22766496dded9d7e69fc916d0fdde/src/main/java/com/moilioncircle/redis/rdb/cli/ext/rct/KeyValRdbVisitor.java#L324

oranagra avatar Apr 03 '23 12:04 oranagra

@oranagra redis-rdb-cli fully support redis 7 RDB files

leonchen83 avatar Apr 04 '23 02:04 leonchen83

@oranagra redis-rdb-cli fully support redis 7 RDB files

thanks @leonchen83 i was really worried that for a long time there was nothing out there capable of processing listpacks and users who upgraded to 7.0 (and can't downgrade) have nothing to work with.

p.s. I suppose you can start doing the additional minor adjustments for Redis 7.2 (sets use listpack, and and streams active-time)

oranagra avatar Apr 04 '23 05:04 oranagra

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

ChenWei-XiaoYi avatar Mar 23 '24 01:03 ChenWei-XiaoYi

   您好,我已收到您的邮件,谢谢!!~~

smilyFw avatar Mar 23 '24 01:03 smilyFw

I was able to use https://github.com/leonchen83/redis-rdb-cli with redis dump file format 11

jayvdb avatar Mar 23 '24 02:03 jayvdb

   您好,我已收到您的邮件,谢谢!!~~

smilyFw avatar Apr 19 '24 10:04 smilyFw

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

ChenWei-XiaoYi avatar Apr 19 '24 10:04 ChenWei-XiaoYi

@sripathikrishnan , this PR is beneficial for my current project, please review and approve it as soon as possible. Currently, my project uses this PR as a patch. Merging it will be good for this project. Thanks a lot.

JunhongMao avatar May 31 '24 21:05 JunhongMao

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

ChenWei-XiaoYi avatar May 31 '24 21:05 ChenWei-XiaoYi

   您好,我已收到您的邮件,谢谢!!~~

smilyFw avatar May 31 '24 21:05 smilyFw