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

Improve ClusterStateMockUtil and make its methods public

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.5, 9.0
    • Tests
    • None

    Description

      While working on SOLR-13996, I had the need to mock the cluster state for various configurations and I used ClusterStateMockUtil.

      However, I ran into a few issues that needed to be fixed:
      1. The methods in this class are protected making it useful only within the same package
      2. A null router was set for DocCollection objects
      3. The DocCollection object is created before the slices so the DocCollection.getActiveSlices method returns empty list because the active slices map is created inside the DocCollection constructor
      4. It did not set core name for the replicas it created
      5. It has no support for replica types so it only creates nrt replicas

      I will use this Jira to fix these problems and make the methods in that class public (but marked as experimental)

      Attachments

        1. SOLR-14248.patch
          14 kB
          Shalin Shekhar Mangar
        2. SOLR-14248.patch
          5 kB
          Shalin Shekhar Mangar

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: