Skip to content

RClientSideCaching reports stale data in cluster mode #7462

Todo

Description

@MagicalAsh

Redis version

8.6.8, clustered

Redisson version

4.8.0, verified present in 4.7.0, 4.1.0, 4.0.0.

Redisson configuration

Redisson is configured in cluster mode using defaults, RESP3, and using ReadMode.SLAVE.

What is the Expected behavior?

The locally cached RBucket is invalidated when when a write occurs, or an exception is thrown when attempting to use an RClientSideCaching when ReadMode.SLAVE is used.

What is the Actual behavior?

The locally cached RBucket is not invalidated when a write occurs, and no exception is thrown.

Additional information

I've created a minimal working example that demonstrates the issue. It's a gradle project with 3 tests: one for standalone Redis (which passes), one for clustered Redis with ReadMode.MASTER (which fails intermittently), and one for clustered Redis with ReadMode.SLAVE (which fails consistently). Manual testing also indicates that ReadMode.MASTER_SLAVE also fails.

redisson-bug.zip

Activity

  1. changed the title [-]RClientSideCaching reports stale data in cluster mode when read mode is not set to ReadMode.MASTER[/-] [+]RClientSideCaching reports stale data in cluster mode[/+] on Dec 1, 2026
  2. self-assigned this
    on Dec 2, 2026
  3. added this to the 4.9.0 milestone on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions