You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2022/05/02 23:33:47 UTC

[GitHub] [lucene-solr] risdenk commented on a diff in pull request #2651: SOLR-16110 Using Schema/Config API breaks the File-Upload of Config Set File

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


##########
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 addressed this in https://github.com/apache/solr/pull/831 - updated for main



-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org