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

Move a collection's configSet name to state.json

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: main (9.0)
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      It's a bit odd that a collection's state.json knows everything about a collection except for perhaps the most important pointer – the configSet name. Presently the configSet name is retrieved via ZkStateReader.getConfigName(collectionName) which looks at the zk path /collections/collectionName (an intermediate node) interpreted as a trivial JSON object. Combining the configSet name into state.json is simpler and also more efficient since many calls to grab the configset name already need the state.json (via a DocCollection object).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dsmiley David Smiley
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h
                  4h