Madan Jampani
Committed by Gerrit Code Review

Leadership: Rerun purge step when conflicting updates are detected

Change-Id: Iecf34a79688ff6d288f7bf17e0d99be35b6539e2
......@@ -577,6 +577,10 @@ public class DistributedLeadershipManager implements LeadershipService {
updatedCandidates.value(),
updatedCandidates.version(),
updatedCandidates.creationTime())));
} else {
// Conflicting update detected. Rerun purge to make sure
// inactive candidates are evicted.
rerunPurge.set(true);
}
} catch (Exception e) {
log.debug("Failed to evict inactive candidates {} from "
......