Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kvserver: fix deadlock on rebalance obj change #97489

Closed

Conversation

kvoli
Copy link
Collaborator

@kvoli kvoli commented Feb 22, 2023

Previously, changing the rebalance objective could lead to inconsistent
locking order between the load based splitter and rebalance objective.

The split config is created per replica, rather than per store as it was
previously. The split config and split decider are bundled underneath a
new mutex which ensures consistent access.

Resolves: #97000

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@kvoli kvoli force-pushed the 230222.fix-rebalance-deadlock branch 2 times, most recently from 5d9cfdb to 68e08f4 Compare February 22, 2023 17:57
@kvoli kvoli self-assigned this Feb 22, 2023
@kvoli kvoli force-pushed the 230222.fix-rebalance-deadlock branch 2 times, most recently from 8f06d3a to 8658ab5 Compare February 22, 2023 18:05
Previously, changing the rebalance objective could lead to inconsistent
locking order between the load based splitter and rebalance objective.

The split config is created per replica, rather than per store as it was
previously. The split config and split decider are bundled underneath a
new mutex which ensures consistent access.

Resolves: cockroachdb#97000

Release note: None
@kvoli kvoli force-pushed the 230222.fix-rebalance-deadlock branch from 8658ab5 to ee624b8 Compare February 22, 2023 19:18
@kvoli
Copy link
Collaborator Author

kvoli commented Feb 23, 2023

closing in favor of #97539

@kvoli kvoli closed this Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kv/kvserver: TestMergeQueue failed
2 participants