Skip to content
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

Exception in read_zipmap_next_length #2

Closed
mezzatto opened this issue Mar 26, 2012 · 2 comments
Closed

Exception in read_zipmap_next_length #2

mezzatto opened this issue Mar 26, 2012 · 2 comments

Comments

@mezzatto
Copy link

When I run with "--command diff" or "-c memory" I get the following exception:

Traceback (most recent call last):
File "./rdb", line 80, in
main()
File "./rdb", line 77, in main
parser.parse(dump_file)
File "/home/danielm/Downloads/sripathikrishnan-redis-rdb-tools-94d13ef/rdbtools/parser.py", line 306, in parse
self.read_object(f, data_type)
File "/home/danielm/Downloads/sripathikrishnan-redis-rdb-tools-94d13ef/rdbtools/parser.py", line 401, in read_object
self.read_zipmap(f)
File "/home/danielm/Downloads/sripathikrishnan-redis-rdb-tools-94d13ef/rdbtools/parser.py", line 577, in read_zipmap
next_length = self.read_zipmap_next_length(buff)
File "/home/danielm/Downloads/sripathikrishnan-redis-rdb-tools-94d13ef/rdbtools/parser.py", line 598, in read_zipmap_next_length
raise Exception('read_zipmap_next_length', 'Unexpected value in length field - %d' % num)
Exception: ('read_zipmap_next_length', 'Unexpected value in length field - 254')

@sripathikrishnan
Copy link
Owner

I think I have fixed the issue with the above commit. Can you confirm if the latest code solves your problem?

Also, can you tell me what value you have for hash-max-zipmap-value in redis.conf?

@mezzatto
Copy link
Author

It worked. Thanks. The values are:

hash-max-zipmap-entries 64
hash-max-zipmap-value 8192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants