-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
broker: tear down and restart a demoted replica
It's possible for a broker to transition from primary => replica, if it doesn't happen to observe a keyspace update where it's assignment is removed prior to it being re-added by the allocator. If we were the primary, we need to be sure to tear down the replication pipeline we may be holding. Handle this scenario by cancelling the current replica and building a new one. Also add a (hopefully) temporary work-around for the multiple assignment issue we're currently tracking down.
- Loading branch information
1 parent
41c8dbe
commit 8d8fa04
Showing
2 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters