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

ZkController can warn about shard leader conflict after conflict resolved

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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.

        Attachments

        1. SOLR-5993.patch
          1 kB
          Gregory Chanan

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: