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

CloudSolrClient NPE exception when NOT directUpdatesToLeadersOnly

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment