Skip to content

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

@Firaenix

Description

@Firaenix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions