lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SerCeMan <>
Subject [GitHub] lucene-solr pull request #264: Fix NPE on connection failure
Date Thu, 19 Oct 2017 01:31:36 GMT
GitHub user SerCeMan opened a pull request:

    Fix NPE on connection failure

    We're using ZK for node discovery. During rare evens of when some nodes are unavailable,
we observe NPEs. I'm not quite familiar with the solr client logic but by looking at the code
further, I concluded that the iteration misses a null check. 
    java.lang.NullPointerException: null
        at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(
        at org.apache.solr.client.solrj.impl.CloudSolrClient.request(
        at org.apache.solr.client.solrj.SolrRequest.process(
        at org.apache.solr.client.solrj.SolrClient.query(
        at org.apache.solr.client.solrj.SolrClient.query(
        at com.canva.http.AbstractFinagleServer.doApply0(
        at com.canva.http.AbstractFinagleServer.lambda$apply$1(
        at java.util.concurrent.Executors$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

You can merge this pull request into a Git repository by running:

    $ git pull patch-1

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #264
commit 093e63533bc71c1e7c65709d05746b7d7b1a0a13
Author: Sergey Tselovalnikov <>
Date:   2017-10-19T01:25:50Z

    Fix NPE on connection failure



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message