mirror of https://github.com/apache/lucene.git
fix formatting
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1612410 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea00cf4e6c
commit
a141498428
|
@ -342,14 +342,14 @@ public class LeaderElector {
|
||||||
if (EventType.None.equals(event.getType())) {
|
if (EventType.None.equals(event.getType())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(canceled) {
|
if (canceled) {
|
||||||
log.info("This watcher is not active anymore {}", myNode);
|
log.info("This watcher is not active anymore {}", myNode);
|
||||||
try {
|
try {
|
||||||
zkClient.delete(myNode,-1,true);
|
zkClient.delete(myNode, -1, true);
|
||||||
}catch (KeeperException.NoNodeException nne) {
|
} catch (KeeperException.NoNodeException nne) {
|
||||||
//expected . don't do anything
|
// expected . don't do anything
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warn("My watched node still exists and can't remove "+myNode, e);
|
log.warn("My watched node still exists and can't remove " + myNode, e);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue