Solr
  1. Solr
  2. SOLR-5993

ZkController can warn about shard leader conflict after conflict resolved

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.7.1, 4.8, 6.0
    • Fix Version/s: 4.8.1, 4.9, 6.0
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      If the clusterState and ZK disagree about the shard leader for awhile, a warning is printed to the log here:

               String warnMsg = String.format(Locale.ENGLISH, "Still seeing conflicting information about the leader "
                    + "of shard %s for collection %s after %d seconds; our state says %s, but ZooKeeper says %s",
                    cloudDesc.getShardId(), collection, tries, clusterStateLeaderUrl, leaderUrl);
      

      The issue is that the clusterStateLeaderUrl and leaderUrl are updated but not checked before the warning, so a warning can be printed to the log saying something like:
      our state says localhost:9893_solr but ZooKeeper says localhost:9893_solr

      which is confusing because there is no conflict.

      1. SOLR-5993.patch
        1 kB
        Gregory Chanan

        Activity

        Hide
        Gregory Chanan added a comment -

        Here's a small patch that prints the warning before the sleep and reload of the values.

        Show
        Gregory Chanan added a comment - Here's a small patch that prints the warning before the sleep and reload of the values.
        Hide
        ASF subversion and git services added a comment -

        Commit 1588415 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1588415 ]

        SOLR-5993: ZkController can warn about shard leader conflict even after the conflict is resolved

        Show
        ASF subversion and git services added a comment - Commit 1588415 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1588415 ] SOLR-5993 : ZkController can warn about shard leader conflict even after the conflict is resolved
        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks Gregory!

        Show
        Shalin Shekhar Mangar added a comment - Thanks Gregory!
        Hide
        ASF subversion and git services added a comment -

        Commit 1588416 from shalin@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1588416 ]

        SOLR-5993: ZkController can warn about shard leader conflict even after the conflict is resolved

        Show
        ASF subversion and git services added a comment - Commit 1588416 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1588416 ] SOLR-5993 : ZkController can warn about shard leader conflict even after the conflict is resolved
        Hide
        ASF subversion and git services added a comment -

        Commit 1592821 from hossman@apache.org in branch 'dev/branches/lucene_solr_4_8'
        [ https://svn.apache.org/r1592821 ]

        Merge back several "low hanging" bug fixes into the 4.8 branch...
        SOLR-6029: r1590867
        SOLR-6030: r1591555
        SOLR-6037: r1591800
        SOLR-6023: r1592195
        SOLR-5090: r1592591
        SOLR-6039: r1592605
        SOLR-5993: r1588415
        SOLR-5904: r1587702

        Show
        ASF subversion and git services added a comment - Commit 1592821 from hossman@apache.org in branch 'dev/branches/lucene_solr_4_8' [ https://svn.apache.org/r1592821 ] Merge back several "low hanging" bug fixes into the 4.8 branch... SOLR-6029 : r1590867 SOLR-6030 : r1591555 SOLR-6037 : r1591800 SOLR-6023 : r1592195 SOLR-5090 : r1592591 SOLR-6039 : r1592605 SOLR-5993 : r1588415 SOLR-5904 : r1587702

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Gregory Chanan
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development