mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-11-04 18:21:45 +01:00
Complete future after Leadership withdraw is done
Change-Id: I905a78c3f80e10793506ac92783d502798ae0390
This commit is contained in:
parent
6490a3bc3b
commit
052ad652d3
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user