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

Should be retry-able: "ClusterState says we are the leader ..., but locally we don't think so"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.4
    • SolrCloud
    • None

    Description

      When indexing to SolrCloud, an error may occur: "ClusterState says we are the leader ..., but locally we don't think so". It's temporary and should be retried by SolrJ.


      Original title: "CollectionsAPIDistributedZkTest.testCollectionsAPI fails regularly with leader mismatch"
      Original description by Varun:
      I've been noticing lots of failures on Jenkins where the document add get's rejected because of leader conflict and throws an error like

      ClusterState says we are the leader (https://127.0.0.1:38715/solr/awhollynewcollection_0_shard2_replica_n2), but locally we don't think so. Request came from null
      

      Scanning Jenkins logs I see that these failures have increased since Sept 28th and has been failing daily.

      Attachments

        1. jenkins_7x_257.log
          7.63 MB
          Varun Thacker
        2. jenkins_master_7045.log
          4.51 MB
          Varun Thacker
        3. solr_master_7574.log
          275 kB
          Varun Thacker
        4. solr_master_8983.log
          314 kB
          Varun Thacker

        Issue Links

          Activity

            People

              dsmiley David Smiley
              varun Varun Thacker
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m