Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12706

CloudSolrClient NPE exception when NOT directUpdatesToLeadersOnly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I've seen multiple various tests fail with a NPE with this stack trace:

      Caused by: java.lang.NullPointerException
              at org.apache.solr.client.solrj.impl.CloudSolrClient.buildUrlMap(CloudSolrClient.java:641)
              at org.apache.solr.client.solrj.impl.CloudSolrClient.directUpdate(CloudSolrClient.java:502)
              at org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1018)
              at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:886)
      

      Line 641 is: if (!replica.getNodeName().equals(leader.getNodeName()) && in a loop that is under a condition if (!directUpdatesToLeadersOnly) {

      Searching emails of failed reports for "CloudSolrClient.buildUrlMap" will turn up various failure reports. The first such email in recent times occurred August 3rd and since then, multiple times.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: