lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaël Lalire (JIRA) <j...@apache.org>
Subject [jira] [Created] (SOLR-13601) Allow using 0 port with MiniSolrCloudCluster
Date Wed, 03 Jul 2019 06:39:00 GMT
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


Mime
View raw message