On 7/2/2018 5:57 PM, Joe Obernberger wrote:
> Just to add to this - looks like the only valid replica that is
> remaining is a TLOG type, and I suspect that is why it no longer has a
> leader.  Poop.

A replica of that type (TLOG) should be capable of becoming leader.  The
PULL replica type is the one that cannot become leader.

> On 7/2/2018 7:54 PM, Joe Obernberger wrote:
>> Hi - On startup, I'm getting the following error.  The shard had 3
>> replicas, but none are selected as the leader.  I deleted one, and
>> adding a new one back, but that had no effect, and at times the calls
>> would timeout.  I was having the same issue with another shard on the
>> same collection and deleting/re-adding a replica worked; the shard
>> now has a leader.  This one, I can't seem to get to come up.  Any ideas?
<snip>
>> Caused by: org.apache.zookeeper.KeeperException$NoNodeException:
>> KeeperErrorCode = NoNode for
>> /collections/UNCLASS_30DAYS/leaders/shard6/leader

This is saying that a specific path
(/collections/UNCLASS_30DAYS/leaders/shard6/leader) does not exist in
the ZooKeeper database.  I do not know why it doesn't exist.

You may need to create the znode represented by that path.  If you use
the same zkHost option for the command as you have for Solr itself, you
can create the path with the "zk mkroot" command on the control script:

https://lucene.apache.org/solr/guide/6_6/solr-control-script-reference.html#solr-control-script-reference

After creating that znode, it is probably a good idea to restart one of
the Solr nodes with a shard for that collection.  It is possible that it
still might not work, but it should change the error message even if it
doesn't work, and we can go from there to come up with additional ideas.

Thanks,
Shawn

Reply via email to