Skip to content

Fix sharded pubsub auto-resubscription after Redis cluster rebalancing #3400

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

byunjuneseok
Copy link

@byunjuneseok byunjuneseok commented Aug 16, 2025

Make sure that:

  • You have read the contribution guidelines.
  • You have created a feature request first to discuss your contribution intent. Please reference the feature request ticket number in the pull request.
  • You applied code formatting rules using the mvn formatter:format target. Don’t submit any formatting related changes.
  • 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

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 byunjuneseok changed the title Byunjuneseok/fix sharded pubsub resubscribe Fix sharded pubsub auto-resubscription after Redis cluster rebalancing Aug 16, 2025
@byunjuneseok byunjuneseok force-pushed the byunjuneseok/fix_sharded_pubsub_resubscribe branch 2 times, most recently from 3e6a13f to f2fc1ee Compare August 16, 2025 09:44
@byunjuneseok byunjuneseok force-pushed the byunjuneseok/fix_sharded_pubsub_resubscribe branch from f2fc1ee to cf1b45c Compare August 16, 2025 09:47
@byunjuneseok byunjuneseok marked this pull request as ready for review August 16, 2025 09:47
@tishun tishun added this to the 7.0.0.RELEASE milestone Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants