[ 
https://issues.apache.org/jira/browse/SOLR-5172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743034#comment-13743034
 ] 

Alan Woodward commented on SOLR-5172:
-------------------------------------

An embedded zkserver is also optionally used in zkCLI.java, but it looks as 
though the port-handling logic is just plain wrong in here.  You need to pass 
the Solr port as a command-line option for the embedded server to run (although 
presumably you don't actually need Solr running, and in a bootstrap scenario 
actively don't want Solr running), which is then used to start a SolrZkServer.  
But this port is then ignored by the next line, which starts a ZkClient 
connecting to whatever has been passed as the -zkhost parameter.
                
> Start embedded zk servers before CoreContainer loads
> ----------------------------------------------------
>
>                 Key: SOLR-5172
>                 URL: https://issues.apache.org/jira/browse/SOLR-5172
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Priority: Minor
>
> In SOLR-4718 we allowed solr.xml to be read from Zookeeper in cloud setups.  
> However, this doesn't work with an embedded ZK server because it doesn't 
> start until CoreContainer.load() is called, by which time solr.xml has 
> already been loaded.  We should move the embedded ZK startup/shutdown logic 
> out of CoreContainer and into SolrDispatchFilter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to