[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to