-
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.
103776: kvserver: fix rebalance obj callback ctx r=knz a=kvoli The `RebalanceObjectiveManager` updates the rebalance objective by using callbacks on cluster setting, cluster version and store descriptor gossip changes. The callback on store descriptor changes was re-using the initialization function's (`newRebalanceObjectiveManager`) context. This re-use could cause use of tracing spans after finish, if the callback path evaluates when initialized with a context containing tracing spans. Use a background context in the store descriptor callback to prevent this problem. This PR also adds an ambient context to the `RebalanceObjectiveManager` and uses it to annotate callbacks. Fixes: #103763 Release note: None Co-authored-by: Austen McClernon <[email protected]>
- Loading branch information
Showing
3 changed files
with
30 additions
and
10 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