Hey Shawn,

Thanks for the response. I was using 3.5.3-beta and after your suggestion I 
tried 3.5.4-beta as well as the latest 3.4.* Zookeeper with the same issue. 

Trying to execute the mntr command directly revealed the problem because I got 
an error message that said that the mntr command was not whitelisted. Once I 
added the mntr command to the whitelist everything is up and functional.

Thanks for the guidance.

Sadiki Latty

-----Original Message-----
From: Shawn Heisey [mailto:apa...@elyograg.org] 
Sent: April 23, 2019 3:58 PM
To: solr-user@lucene.apache.org
Subject: Re: Zk Status Error

On 4/23/2019 12:14 PM, Sadiki Latty wrote:
> Here are the 2 errors in the Solr Logging section
> 
> RequestHandlerBase  java.lang.ArrayIndexOutOfBoundsException: 1
> 
> "java.lang.ArrayIndexOutOfBoundsException: 1
> 
>                  at
> org.apache.solr.handler.admin.ZookeeperStatusHandler.monitorZookeeper(
> ZookeeperStatusHandler.java:185)

That line of code in Solr 7.7.1 is:

       obj.put(line.split("\t")[0], line.split("\t")[1]);

The error is saying that the array created by the split function didn't have 
two elements, so asking for the entry numbered 1 doesn't work.

Which means that the output Solr received from the ZK "mntr" command was not 
what Solr expected.

What version of ZK do you have running your ZK ensemble?  Is your ZK ensemble 
working correctly?  The ZK client version in Solr 7.7.1 is 3.4.13.  If your 
server version is different, maybe there was a change in the output from the 
mntr command.

What happens if you issue the mntr command yourself directly?

Solr should, at the very least, detect possible problems with decoding the 
response from ZK and display a more helpful message.  If there was a change in 
the command output, Solr should be resilient enough to handle it.

Thanks,
Shawn

Reply via email to