thelabdude commented on a change in pull request #334:
URL: https://github.com/apache/solr-operator/pull/334#discussion_r723428797



##########
File path: controllers/util/solr_util.go
##########
@@ -1010,21 +992,21 @@ func generateZKInteractionInitContainer(solrCloud 
*solr.SolrCloud, solrCloudStat
 
        cmd := ""
 
+       if hasChroot {
+               cmd += "solr zk ls ${ZK_CHROOT} -z ${ZK_SERVER} || solr zk 
mkroot ${ZK_CHROOT} -z ${ZK_SERVER}; "
+       }
+
        if solrCloud.Spec.SolrTLS != nil {
                cmd = setUrlSchemeClusterPropCmd()

Review comment:
       I added a test to catch this.




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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to