madrob commented on code in PR #2651:
URL: https://github.com/apache/lucene-solr/pull/2651#discussion_r857126726


##########
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:
   Probably a race condition here?



-- 
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

Reply via email to