On 1/9/2019 4:25 AM, Yogendra Kumar Soni wrote:
How to know attributes like shard name and hash ranges with associated core
names if we lost state.json file from zookeeper.
core.properties only contains core level information but hash ranges are
not stored there.

Does solr stores collection information, shards information anywhere.

If you completely lose the information in ZooKeeper, SolrCloud will cease to function properly.  Some of that information is not stored anywhere else.  This is why you should have redundancy at the ZK level, which means a minimum of 3 hosts.Making occasional backups of the ZK data directory would also a good idea.

Responding to another thread you started:  If you start SolrCloud with an empty zookeeper, none of the cores relating to collections that are not found in ZK will start.  This is because without the info in ZK, Solr has no idea how to use those cores. The data contained in those cores should not be erased, though. It should be ignored.  The only way I can imagine the data getting deleted on Solr startup is a situation where the collection *is* in ZK and the replicas that are already online are empty.

Thanks,
Shawn

Reply via email to