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

Optimize ZkController.publishAndWaitForDownStates

    XMLWordPrintableJSON

Details

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

    Description

      ZkController.publishAndWaitForDownStates keeps looping over all collections in the cluster state to ensure that every replica hosted on the current node has been marked as down. This is wasteful when you have a large number of collections because each access to a non-watched collection gets data from ZK. Instead, we can watch the interesting collections (i.e. which have replicas hosted locally) and wait till we see the required state.

      Attachments

        1. SOLR-9264.patch
          5 kB
          Shalin Shekhar Mangar
        2. SOLR-9264.patch
          5 kB
          Shalin Shekhar Mangar
        3. SOLR-9264.patch
          4 kB
          Shalin Shekhar Mangar

        Activity

          People

            shalin Shalin Shekhar Mangar
            shalin Shalin Shekhar Mangar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: