You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2013/08/17 21:39:48 UTC

[jira] [Commented] (SOLR-5172) Start embedded zk servers before CoreContainer loads

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

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

One problem here is that embedded ZK currently expects to start on solrport + 1000, but we don't know the solr port until we've parsed solr.xml.  Maybe we should just expect to start on 9983, or allow the zk port to be set as a sysprop?

A couple more ideas:
* Do we need to support a distributed ZK setup in embedded mode?  It's only supposed to be for use in development, and it adds a *lot* of complication to the code.
* We also have a separate ZkTestServer, for use in running tests.  We can probably remove this and just re-use SolrZkServer.
                
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org