You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Gaël Lalire (JIRA)" <ji...@apache.org> on 2019/07/03 06:39:00 UTC

[jira] [Created] (SOLR-13601) Allow using 0 port with MiniSolrCloudCluster

Gaël Lalire created SOLR-13601:
----------------------------------

             Summary: Allow using 0 port with MiniSolrCloudCluster
                 Key: SOLR-13601
                 URL: https://issues.apache.org/jira/browse/SOLR-13601
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: SolrCloud
            Reporter: Gaël Lalire


I think it works only with changing in ZkController the following line
{code:java}
this.localHostPort = cloudConfig.getSolrHostPort();
{code}
with this one (to get the real port and not the 0 one)
{code:java}
this.localHostPort = Integer.parseInt(cc.getContainerProperties().getProperty("hostPort"));
{code}
While it is OK in my case, maybe there is other locations to change.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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