-
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.
60657: contention: add serialization of the contention registry r=yuzefovich a=yuzefovich **contention: add serialization of the contention registry** This commit adds an ability to serialize the contention registry that will be necessary to surface the contention information up from the backend. Addresses: #57114. Release note: None **contention: merge serialized representations of registries** This commit adds a method to merge the serialized representation of contention registries into one which will be needed to get a global contention view. Note that the merge operation respects the same constants that limit the size of the registry. Additionally, the serialized representations now respect the following orderings: - on the highest level, all IndexContentionEvents objects are ordered according to their importance (achieved by an explicit sort) - on the middle level, all SingleKeyContention objects are ordered by their keys (achieved by using the ordered cache) - on the lowest level, all SingleTxnContention objects are ordered by the frequency of the occurrence (achieved by an explicit sort). The same guarantees are kept for the merge operation too. Release note: None 60941: kv: mark "raft status not initialized" error with errMarkSnapshotError r=nvanbenschoten a=nvanbenschoten Allows kvnemesis to consider this a RetriableReplicationChangeError. Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information
Showing
10 changed files
with
1,550 additions
and
54 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
Oops, something went wrong.