lettuce icon indicating copy to clipboard operation
lettuce copied to clipboard

Fix sharded pubsub auto-resubscription after Redis cluster rebalancing

Open byunjuneseok opened this issue 5 months ago • 1 comments

Make sure that:

  • [x] You have read the contribution guidelines.
  • [x] You have created a feature request first to discuss your contribution intent. Please reference the feature request ticket number in the pull request.
  • [x] You applied code formatting rules using the mvn formatter:format target. Don’t submit any formatting related changes.
  • [x] You submit test cases (unit or integration tests) that back your changes.

Summary

Fixes missing auto-resubscription for Sharded Pub/Sub after Redis cluster rebalancing.

Issues

  • No resubscribe mechanism on slot movement (https://github.com/redis/lettuce/issues/3213)

Fixes

  • Introduced ShardedPubSubAutoResubscribeListener for automatic resubscribe
  • Tracked intentional unsubscribes in async/reactive sunsubscribe
  • Leveraged existing cluster redirection for reconnection

Result

Sharded Pub/Sub subscriptions now automatically resubscribe on slot rebalancing while preserving intentional client unsubscribe behavior.

byunjuneseok avatar Aug 16 '25 09:08 byunjuneseok

@tishun // Hi, I noticed this PR is marked for 7.0.0.RELEASE. Just wondering if there’s anything I can do to help move this forward?

Best,

byunjuneseok avatar Oct 02 '25 13:10 byunjuneseok