Unsubscribe all clients from replica for shard channel if the master ownership changes#12577
Conversation
…ownership changes
zuiderkwast
left a comment
There was a problem hiding this comment.
It seems reasonable to unsubscribe clients from shard channels when the shard changes.
Do we ever do this for regular subscribe channels and patterns?
I'm not sure all clients can handle a 'sunsubscribe' message without first having sent a SUNSUBSCRIBE command. Maybe not even redis-cli can handle this. We should check.
We need to clarify in the docs that the client can receive 'sunsubscribe' messages even when they haven't sent SUNSUBSCRIBE.
No, not that I'm aware of.
This is already the behavior when individual slots get migrated from one node to another. Node migration scenario wasn't covered. Yeah, we could document this for client(s) to take action (possibly disconnect and reconnect the client) and improve |
Co-authored-by: Madelyn Olson <[email protected]>
|
Not back porting immediately as there is no immediate need. If it comes up, we can backport and release. |
Fixes #12558