madrob commented on code in PR #2651: URL: https://github.com/apache/lucene-solr/pull/2651#discussion_r857132730
########## solr/core/src/java/org/apache/solr/cloud/ZkController.java: ########## @@ -2503,7 +2503,8 @@ public static int persistConfigResourceToZooKeeper(ZkSolrResourceLoader zkLoader public static void touchConfDir(ZkSolrResourceLoader zkLoader) { SolrZkClient zkClient = zkLoader.getZkController().getZkClient(); try { - zkClient.setData(zkLoader.getConfigSetZkPath(), new byte[]{0}, true); + byte[] currentData = zkClient.getData(zkLoader.getConfigSetZkPath(), null, null, true); + zkClient.setData(zkLoader.getConfigSetZkPath(), currentData, true); Review Comment: I don't have an IDE in front of me, but there's a flag to setData I think that lets us fail if the node already exists to avoid overwriting the current data. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org