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

[BUG] Sorted sets with long names crash KeyDB when using ZRANGESTORE #393

Closed
Firaenix opened this issue Feb 2, 2022 · 3 comments
Closed

Comments

@Firaenix
Copy link

Firaenix commented Feb 2, 2022

Describe the bug

Title describes the bug.

To reproduce

ZADD longnameset 10 "sha256-hash:2a553c8a93af1a1043aeb624de5e484af683d493e2e035343e7bd732511deeee" 20 "world"

ZRANGE longnameset 10 +inf BYSCORE WITHSCORES
1) "sha256-hash:2a553c8a93af1a1043aeb624de5e484af683d493e2e035343e7bd732511deeee"
2) "10"
3) "world"
4) "20"

ZRANGESTORE longsubset longnameset 10 +inf BYSCORE
Error: Server closed the connection

Expected behavior

A new sorted set should be created with the results of the ZRANGE command.

Additional information

Can reproduce on the following docker containers:

  • eqalpha/keydb:arm64_v6.2.2
  • eqalpha/keydb:x86_64_v6.2.2
@Firaenix
Copy link
Author

Firaenix commented Feb 2, 2022

Upon further looking, the max character length for a ZSET entry is 64 characters long before a crash occurs.

image

@Firaenix
Copy link
Author

Firaenix commented Feb 2, 2022

image

@VivekSainiEQ
Copy link
Contributor

Looks like this issue has been resolved with #408, closing this thread.

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