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).
- is related to
SOLR-14340 ZkStateReader.readConfigName is doing too much work
- links to