sripathikrishnan / redis-rdb-tools

Parse Redis dump.rdb files, Analyze Memory, and Export Data to JSON
https://rdbtools.com
MIT License
5.07k stars 739 forks source link

Redis 7 support #193

Open Nanciico opened 1 year ago

Nanciico commented 1 year ago

Support to analyze RDB version 10.

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

oranagra commented 1 year ago

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 commented 1 year ago

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

leonchen83 commented 1 year ago

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

oranagra commented 1 year ago

@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)

ChenWei-XiaoYi commented 5 months ago

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

smilyFw commented 5 months ago

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

jayvdb commented 5 months ago

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

smilyFw commented 4 months ago

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

ChenWei-XiaoYi commented 4 months ago

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

JunhongMao commented 3 months ago

@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.

ChenWei-XiaoYi commented 3 months ago

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

smilyFw commented 3 months ago

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