You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Eric B (JIRA)" <ji...@apache.org> on 2016/11/22 01:44:58 UTC
[jira] [Commented] (SOLR-9789) ZkCLI throws NullPointerException if
zkClient doesn't return data
[ https://issues.apache.org/jira/browse/SOLR-9789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15685369#comment-15685369 ]
Eric B commented on SOLR-9789:
------------------------------
For reference, here's the stack trace we saw when running running {{-cmd get /clusterstate.json}} with {{ZkCLI}}
{noformat}
Exception in thread "main" java.lang.NullPointerException
at java.lang.String.<init>(String.java:515)
at org.apache.solr.cloud.ZkCLI.main(ZkCLI.java:297)
{noformat}
> ZkCLI throws NullPointerException if zkClient doesn't return data
> -----------------------------------------------------------------
>
> Key: SOLR-9789
> URL: https://issues.apache.org/jira/browse/SOLR-9789
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrCloud
> Affects Versions: 5.5.1
> Reporter: Gary Lee
> Priority: Minor
>
> We ran into a situation where using ZkCLI to get the Solr clusterstate in Zookeeper always returned a NPE. We eventually found that it was due to a clusterstate being too large (over 1M Zookeeper node limit) so the zkClient.getData call returned null, but it was confusing to instead throw an NPE because ZkCLI assumes non-null byte data. Could a check be added to not throw NPE, but report a warning instead?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org