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

Deprecate and reduce usage of ClusterState methods which may make calls to ZK via the lazy collection reference

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.1, 7.0
    • SolrCloud
    • None

    Description

      ClusterState has a bunch of methods such as getSlice and getReplica which internally call getCollectionOrNull that ends up making a call to ZK via the lazy collection reference. Many classes use these methods even though a DocCollection object is available. In such cases, multiple redundant calls to ZooKeeper can happen if the collection is not watched locally. This is especially true for Overseer classes which operate on all collections.

      We should audit all usages of these methods and replace them with calls to appropriate DocCollection methods.

      Attachments

        1. SOLR-9014.patch
          58 kB
          Shalin Shekhar Mangar
        2. SOLR-9014-deprecate-getCollections.patch
          35 kB
          Shalin Shekhar Mangar

        Activity

          People

            shalin Shalin Shekhar Mangar
            shalin Shalin Shekhar Mangar
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: