You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2016/03/16 22:17:33 UTC

[jira] [Commented] (SOLR-8861) Fix missing CloudSolrClient.connect() before getZkStateReader in solrj.io classes

    [ https://issues.apache.org/jira/browse/SOLR-8861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15198188#comment-15198188 ] 

Kevin Risden commented on SOLR-8861:
------------------------------------

This isn't as bad as it originally looked. This should still be fixed though. Maybe it makes sense for CloudSolrClient.getZkStateReader to call connect(). Currently uploadConfig and downloadConfig call connect() explicitly.

Does CloudSolrClient.getZkStateReader == null mean anything special?

> Fix missing CloudSolrClient.connect() before getZkStateReader in solrj.io classes
> ---------------------------------------------------------------------------------
>
>                 Key: SOLR-8861
>                 URL: https://issues.apache.org/jira/browse/SOLR-8861
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrJ
>    Affects Versions: master, 6.0
>            Reporter: Kevin Risden
>            Priority: Critical
>
> There are a few places in the new solrj.io package that miss calling connect before getZkStateReader. This can cause NPE exceptions with getZkStateReader in some cases if the SolrCache is closed.



--
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