You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Joe Obernberger <jo...@gmail.com> on 2018/07/02 23:54:09 UTC
Solr 7.1.0 - NoNode for /collections
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?
org.apache.solr.common.SolrException: Error getting leader from zk for
shard shard6
at org.apache.solr.cloud.ZkController.getLeader(ZkController.java:1223)
at org.apache.solr.cloud.ZkController.register(ZkController.java:1090)
at org.apache.solr.cloud.ZkController.register(ZkController.java:1018)
at
org.apache.solr.core.ZkContainer.lambda$registerInZk$0(ZkContainer.java:187)
at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.solr.common.SolrException: Could not get leader props
at
org.apache.solr.cloud.ZkController.getLeaderProps(ZkController.java:1270)
at
org.apache.solr.cloud.ZkController.getLeaderProps(ZkController.java:1234)
at org.apache.solr.cloud.ZkController.getLeader(ZkController.java:1190)
... 7 more
Caused by: org.apache.zookeeper.KeeperException$NoNodeException:
KeeperErrorCode = NoNode for
/collections/UNCLASS_30DAYS/leaders/shard6/leader
at
org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1151)
at
org.apache.solr.common.cloud.SolrZkClient.lambda$getData$5(SolrZkClient.java:340)
at
org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:60)
at
org.apache.solr.common.cloud.SolrZkClient.getData(SolrZkClient.java:340)
at
org.apache.solr.cloud.ZkController.getLeaderProps(ZkController.java:1248)
... 9 more
-Joe
Re: Solr 7.1.0 - NoNode for /collections
Posted by Shawn Heisey <ap...@elyograg.org>.
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
Re: Solr 7.1.0 - NoNode for /collections
Posted by Joe Obernberger <jo...@gmail.com>.
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.
-Joe
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?
>
> org.apache.solr.common.SolrException: Error getting leader from zk for
> shard shard6
> at
> org.apache.solr.cloud.ZkController.getLeader(ZkController.java:1223)
> at
> org.apache.solr.cloud.ZkController.register(ZkController.java:1090)
> at
> org.apache.solr.cloud.ZkController.register(ZkController.java:1018)
> at
> org.apache.solr.core.ZkContainer.lambda$registerInZk$0(ZkContainer.java:187)
> at
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.solr.common.SolrException: Could not get leader
> props
> at
> org.apache.solr.cloud.ZkController.getLeaderProps(ZkController.java:1270)
> at
> org.apache.solr.cloud.ZkController.getLeaderProps(ZkController.java:1234)
> at
> org.apache.solr.cloud.ZkController.getLeader(ZkController.java:1190)
> ... 7 more
> Caused by: org.apache.zookeeper.KeeperException$NoNodeException:
> KeeperErrorCode = NoNode for
> /collections/UNCLASS_30DAYS/leaders/shard6/leader
> at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
> at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1151)
> at
> org.apache.solr.common.cloud.SolrZkClient.lambda$getData$5(SolrZkClient.java:340)
> at
> org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:60)
> at
> org.apache.solr.common.cloud.SolrZkClient.getData(SolrZkClient.java:340)
> at
> org.apache.solr.cloud.ZkController.getLeaderProps(ZkController.java:1248)
> ... 9 more
>
>
> -Joe
>