-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replica_rac2: integrate admitted tracking on leader
This commit plumbs the admitted vectors into the RACv2 Processor. Admitted vectors are applied to replicaSendStream and cause releasing the tokens held by the leader. The admitted vectors are plumbed to replicaSendStream via 3 paths: - The leader's own admitted vector is applied from HandleRaftReadyRaftMuLocked, calling into RangeController.AdmitRaftMuLocked directly. - The followers' admitted vectors in most cases are received via annotated RaftMessageRequest.AdmittedState, which is dispatched from stepRaftGroupRaftMuLocked into the Processor via Processor.AdmitRaftMuLocked method. - The followers' piggybacked admitted vectors from RaftMessageRequestBatch are queued on the Processor via EnqueuePiggybackedAdmittedAtLeader method, and later applied from HandleRaftReadyRaftMuLocked. Epic: none Release note: none
- Loading branch information
Showing
7 changed files
with
86 additions
and
62 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