-
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.
Fix coordinator node being nulled out by abort() for incremental repa…
…irs.
- Loading branch information
1 parent
f022542
commit 74776b1
Showing
1 changed file
with
1 addition
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,7 +120,7 @@ public static void postpone(AppContext context, RepairSegment segment, Optional< | |
} | ||
|
||
public static void abort(AppContext context, RepairSegment segment, JmxProxy jmxConnection) { | ||
postpone(context, segment, Optional.fromNullable((RepairUnit) null)); | ||
postpone(context, segment, context.storage.getRepairUnit(segment.getRepairUnitId())); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
adejanovski
Author
Contributor
|
||
LOG.info("Aborting repair on segment with id {} on coordinator {}", | ||
segment.getId(), segment.getCoordinatorHost()); | ||
jmxConnection.cancelAllRepairs(); | ||
|
this will only work for incremental repairs. what about full repairs?