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

Sending DIH request to non-leader can result in different number of successful documents

    Details

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

      Description

      Basically if you send a DIH request to the non-leader the following set of circumstances can occur:
      1) If there are errors in some of the documents the request itself is rejected by the leader (try making a required field null with some documents to make sure there are rejections).
      2) This causes all documents on that request to appear to fail. The number of documents that a follower is able to update DIH with appears variable.
      3) You need to use a large number of documents it appears to see the anomaly.

      This results in the following error on the follower:
      2014-11-20 12:06:16.470; 34054 [Thread-18] WARN org.apache.solr.update.processor.DistributedUpdateProcessor – Error sending update
      org.apache.solr.common.SolrException: Bad Request

      request: http://10.0.2.15:8983/solr/collection1/update?update.distrib=TOLEADER&distrib.from=http%3A%2F%2F10.0.2.15%3A8982%2Fsolr%2Fcollection1%2F&wt=javabin&version=2
      at org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer$Runner.run(ConcurrentUpdateSolrServer.java:240)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:722)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gregharris73 Greg Harris
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: