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 #185

Open ronaldpetty opened 2 years ago

ronaldpetty commented 2 years ago

Hello, I just gave the rdb tool a try against an RDB file from Redis 7 rc 2.

~/replication$ rdb --command diff ./master/dump.rdb
Traceback (most recent call last):
  File "/usr/local/bin/rdb", line 11, in <module>
    load_entry_point('rdbtools==0.1.15', 'console_scripts', 'rdb')()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/rdbtools/cli/rdb.py", line 106, in main
    parser.parse(options.dump_file[0])
  File "/home/ubuntu/.local/lib/python3.8/site-packages/rdbtools/parser.py", line 394, in parse
    self.parse_fd(open(filename, "rb"))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/rdbtools/parser.py", line 399, in parse_fd
    self.verify_version(f.read(4))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/rdbtools/parser.py", line 963, in verify_version
    raise Exception('verify_version', 'Invalid RDB version number %d' % version)
Exception: ('verify_version', 'Invalid RDB version number 10')

Just for giggles, I changed the 10 to a 09 and it seems to work (at least diffing).

smilyFw commented 2 years ago

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

ronaldpetty commented 2 years ago

别客气

https://github.com/sripathikrishnan/redis-rdb-tools/pull/186

madolson commented 2 years ago

It should mostly work, there are a couple of new RDB op codes like functions that need to be supported.

smilyFw commented 2 years ago

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

ChenWei-XiaoYi commented 2 years ago

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

rhuddleston commented 1 year ago

on upgrade Hash types are auto-converted RDB_TYPE_HASH -> RDB_TYPE_HASH_LISTPACK so at a minimum rdb-tools will need to be upgraded to understand how to decode HASH_LISTPACK objects.

https://github.com/redis/redis/pull/8887

smilyFw commented 1 year ago

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