forked from pettermahlen/voltdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-13880, ENG-13881: On SPI migration, the DR partition buffer receiver(s) on old leader must be shutdown and DR partition buffer receiver must be started on the new leader. We must also make sure that the new leader buffer receiver is started only after the old has shutdown. On SPI migration, DR receives 3 callbacks: leader migration started - This callback happens only on the old leader. This will add a ZK blocker per producer-cluster and consumer partition id leader migration failed - This callback happens only on the old leader. This will remove the ZK blocker that was added by 'started' callback leader migration completed: This will be received on both old leader and new leader. old leader will shutdown the receivers corresponding to this partition and once the receivers are shutdown, deletes the ZK node (description on how shutdown happens is below) new leader will initiate repairCompleted, which will wait for the ZK blocker to be gone before it starts receivers on the new leader for the partitions Shutting down partition receivers: Pending and rate limited queues for the receivers are cleared (anything that hasn't been sent to the client interface will be removed). send a message to consumer mp coordinator to reneg any MP txns for the producer partitions. if there are any mp txns for the partitions waiting to get data from other partitions, they will be removed if there are any mp txns for the partitions that were already sent down to the client interface, we will wait to receive a responses for those once reneg work is complete, receivers are shutdown so that they won't accept anymore binary log data once all the receivers are done, we delete the ZK blocker node
- Loading branch information
1 parent
90fd371
commit b0980ed
Showing
9 changed files
with
128 additions
and
27 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
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
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
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
Oops, something went wrong.