Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6591

Cluster state updates can be lost on exception in main queue loop

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 5.0, 6.0
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      I found this bug while going through the failure on jenkins:
      https://builds.apache.org/job/Lucene-Solr-NightlyTests-trunk/648/

      2 tests failed.
      REGRESSION:  org.apache.solr.cloud.CollectionsAPIDistributedZkTest.testDistribSearch
      
      Error Message:
      Error CREATEing SolrCore 'halfcollection_shard1_replica1': Unable to create core [halfcollection_shard1_replica1] Caused by: Could not get shard id for core: halfcollection_shard1_replica1
      
      Stack Trace:
      org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error CREATEing SolrCore 'halfcollection_shard1_replica1': Unable to create core [halfcollection_shard1_replica1] Caused by: Could not get shard id for core: halfcollection_shard1_replica1
              at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:570)
              at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:215)
              at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:211)
              at org.apache.solr.cloud.CollectionsAPIDistributedZkTest.testErrorHandling(CollectionsAPIDistributedZkTest.java:583)
              at org.apache.solr.cloud.CollectionsAPIDistributedZkTest.doTest(CollectionsAPIDistributedZkTest.java:205)
              at org.apache.solr.BaseDistributedSearchTestCase.testDistribSearch(BaseDistributedSearchTestCase.java:869)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1618)
      

        Attachments

        1. SOLR-6591-no-mixed-batches.patch
          2 kB
          Shalin Shekhar Mangar
        2. SOLR-6591-ignore-no-collection-path.patch
          2 kB
          Shalin Shekhar Mangar
        3. SOLR-6591-constructStateFix.patch
          2 kB
          Shalin Shekhar Mangar
        4. SOLR-6591.patch
          6 kB
          Shalin Shekhar Mangar

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              shalinmangar Shalin Shekhar Mangar
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: