mirror of https://github.com/apache/lucene.git
SOLR-11478: Only remove nodeAddedPath node if it exists
This commit is contained in:
parent
cdcfc1520d
commit
99e853faf8
|
@ -986,7 +986,9 @@ public class ZkController {
|
|||
log.info("Remove node as live in ZooKeeper:" + nodePath);
|
||||
List<Op> ops = new ArrayList<>(2);
|
||||
ops.add(Op.delete(nodePath, -1));
|
||||
ops.add(Op.delete(nodeAddedPath, -1));
|
||||
if (zkClient.exists(nodeAddedPath, true)) {
|
||||
ops.add(Op.delete(nodeAddedPath, -1));
|
||||
}
|
||||
zkClient.multi(ops, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue