Project

General

Profile

« Previous | Next » 

Revision 49004

does not delete the root path on zookeeper when it does not exist

View differences:

modules/dnet-index-solr-service/trunk/src/main/java/eu/dnetlib/functionality/index/utils/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