-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat started segments as running when aborting.
On startup (or periodically in case of the Cassandra storage), the RepairManager aborts segments that do not have a leader or that belong to paused repair runs. However, this code would only abort segments in the RUNNING state. This is a problem because segments might also be left in the STARTED state when a Cassandra Reaper instance is restarted. Such segments would block other segments from running (because when checking for busy hosts, STARTED segments are treated like RUNNING segments), but would never finish or be restarted, thus effectively blocking the repair process. This patch fixes this problem by treating RUNNING and STARTED segments in the same way when aborting segments that do not have a leader or that belong to paused repair runs.
- Loading branch information
1 parent
2cf9456
commit 64b786c
Showing
2 changed files
with
13 additions
and
6 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