Revision 49004
Added by Claudio Atzori over 6 years ago
ZkUtils.java | ||
---|---|---|
69 | 69 |
log.info("uploading solr configuration to ZK for index collection: " + coreName); |
70 | 70 |
|
71 | 71 |
try { |
72 |
if (overwrite) { |
|
72 |
if (overwrite && zkClient.getSolrZooKeeper().exists(basepath, false) != null) {
|
|
73 | 73 |
log.info("cleanup ZK configuration: " + coreName); |
74 | 74 |
for (String child : zkClient.getSolrZooKeeper().getChildren(basepath, false)) { |
75 | 75 |
final String path = basepath + "/" + child; |
Also available in: Unified diff
does not delete the root path on zookeeper when it does not exist