3

I am using solr 4.5. After several tests I have noticed a lot of dead (non existing) replicas are shown in my SolrCloud graph as gone (black). Is there any way to force my solr to forget about this gone replicas?

I think that manually modifying /clusterstate.json node in zookeeper might help but did not try it yet.

running.t
  • 5,329
  • 3
  • 32
  • 50

2 Answers2

4

The simplest way I found is in fact editing /clusterstate.json in zookeeper, and removing dead replicas info from it.

running.t
  • 5,329
  • 3
  • 32
  • 50
  • 1
    Worth noticing is a nice lightweight zookeeper editor I found on github [zkNavigator](https://github.com/looprock/zkNavigator) – running.t Nov 08 '13 at 00:39
3

I don't know if there is any way to do some sort of global cleanup... but:

And, if this is something related to production and not only for testing purpose - you may also want to look at this upcoming change from 4.6 related to registering the replica that was previously removed - https://issues.apache.org/jira/browse/SOLR-5311

rchukh
  • 2,877
  • 2
  • 21
  • 25
  • DeleteaReplica API command would be exactly what I need. I have only several dead replicas so I could delete all them manually. However according to wiki you mentioned this command was introduced in solr 4.6 which I am not going to use until it's released. On the other hand DeleteaShard documentation suggests, that it's removing shard info from clusterstate.json. So I will try to edit that file manually to see if it works (as soon as my zooinpector starts working) – running.t Nov 07 '13 at 23:36