Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topology_coordinator: drop group0 guard while changing raft configura…
…tion Changing config under the guard can cause a deadlock. The guard holds _read_apply_mutex. The same lock is held by the group0 apply() function. It means that no entry can be applied while the guard is held and raft apply fiber may be even sleeping waiting for this lock to be release. Configuration change OTOH waits for the config change command to be committed before returning, but the way raft is implement is that commit notifications are triggered from apply fiber which may be stuck. Deadlock. Drop and re-take guard around configuration changes. Fixes #17186
- Loading branch information
1 parent
4ef5709
commit 94cd235
Showing
1 changed file
with
20 additions
and
11 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