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

zadd( 'test', 555, 'nan') crashes redis server #19

Closed
99hats opened this issue Mar 17, 2010 · 2 comments
Closed

zadd( 'test', 555, 'nan') crashes redis server #19

99hats opened this issue Mar 17, 2010 · 2 comments

Comments

@99hats
Copy link

99hats commented Mar 17, 2010

For some reason having a value that startswith('nan') crashes my redis server (1.2.2)

I'm not sure if this is a server or client issue, but I was unable to duplicate this crash using redis-cli so I'm leaning towards client.

@andymccurdy
Copy link
Contributor

I can't reproduce this issue on the latest redis-py client and latest redis server. I would suggest upgrading to the latest stable redis (1.2.5) and trying again.

Also, what version of the redis-py client are you using?

@99hats
Copy link
Author

99hats commented Mar 22, 2010

My bad. Without looking at the python source I swapped the score with value. I was following the command reference from redis which is "zadd key score value", while the function is zadd(key, value, score)

I see why redis needs to always put value last (they use the space character as the field delimiter) and why in python zadd puts score last (since it's an added difference)

This issue was closed.
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