lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-8862) MiniSolrCloudCluster.createCollection can complain there are no live servers immediately after construction
Date Wed, 16 Mar 2016 23:19:33 GMT
Hoss Man created SOLR-8862:
------------------------------

             Summary: MiniSolrCloudCluster.createCollection can complain there are no live
servers immediately after construction
                 Key: SOLR-8862
                 URL: https://issues.apache.org/jira/browse/SOLR-8862
             Project: Solr
          Issue Type: Bug
          Components: Tests
            Reporter: Hoss Man


I haven't been able to make sense of this yet, but what i'm seeing in a new SolrCloudTestCase
subclass i'm writing is that the code below, which (reasonably) attempts to create a collection
immediately after configuring the MiniSolrCloudCluster gets a "SolrServerException: No live
SolrServers available to handle this request" -- in spite of the fact, that (as far as i can
tell at first glance) MiniSolrCloudCluster's constructor is suppose to block until all the
servers are live..

{code}
    configureCluster(numServers)
      .addConfig(configName, configDir.toPath())
      .configure();
    Map<String, String> collectionProperties = ...;
    assertNotNull(cluster.createCollection(COLLECTION_NAME, numShards, repFactor,
                                           configName, null, null, collectionProperties));
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message