Skip to content

Feedback: Data type commands compatibility #2587

Closed

Description

@uglide

Page https://redis.io/docs/latest/operate/rs/references/compatibility/commands/data-types

The following multi-key commands should have a note to warn users about potential cross-slot errors:

For Active-Active or clustered databases, the original key and new key must be in the same hash slot.

  • Hyperloglog:
    • PFCOUNT
    • PFMERGE
  • Set:
    • SDIFF
    • SDIFFSTORE
    • SMOVE
    • SINTERCARD
    • SINTERSTORE
    • SUNION
    • SUNIONSTORE
  • Stream:
    • XREAD
  • String:
    • msetnx
    • LCS
  • RTS:
    • TSMADD
  • Sorted set:
    • bzmpop
    • zdiffstore
    • bzpopmax
    • bzpopmin
    • zunioin
    • zrangestore
  • Bitmap:
    • bitop
  • List:
    • Lmove
    • blpop
    • brpop
    • lmpop

The list is not complete and needs to be cross-checked.

Activity

  1. self-assigned this
    on Jan 2, 2026
  2. dwdougherty commented on Jan 2, 2026

    @dwdougherty
    Collaborator

    Thank you, @uglide!

    Hi @LiorKogan. If the above list is not complete, can you supply a complete list?

  3. LiorKogan commented on Jan 4, 2026

    @LiorKogan
    Contributor

    There are 5 configurations we need to analyze

    • OSS/RS clustering disabled
    • OSS, clustering enabled
    • RS, clustering enabled, OSS cluster API enabled
    • RS, clustering enabled, OSS cluster API disabled
    • RS, active-active (RS is considered clustered even if there is just one shard)

    and for each configuration and command, there are 3 possible behaviors:

    • single-slot
    • cross-slot (all shards)
    • cross-slot (within a single shard) - this is a special behavior of some commands.

    I believe @uglide 's list is accurate, but I think we should add a table for all 5 configurations.

    I prepared a list here: https://redislabs.atlassian.net/browse/RED-132359

    Note that this list should contain all multi-key commands (where keys are specified explicitly or are implicit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions