Complete future after Leadership withdraw is done

Change-Id: I905a78c3f80e10793506ac92783d502798ae0390
This commit is contained in:
Madan Jampani 2015-06-10 13:20:32 -07:00
parent 6490a3bc3b
commit 052ad652d3

View File

@ -289,6 +289,7 @@ public class DistributedLeadershipManager implements LeadershipService {
(topic, candidates) -> candidates.stream() (topic, candidates) -> candidates.stream()
.filter(nodeId -> !localNodeId.equals(nodeId)) .filter(nodeId -> !localNodeId.equals(nodeId))
.collect(Collectors.toList())); .collect(Collectors.toList()));
future.complete(null);
} catch (Exception e) { } catch (Exception e) {
log.debug("Failed to verify (and clear) any lock this node might be holding for {}", path, e); log.debug("Failed to verify (and clear) any lock this node might be holding for {}", path, e);
retryWithdraw(path, future); retryWithdraw(path, future);