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

Delete silently fails if not sent to shard where document was added

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

Details

    Description

      We have SolrCloud set up with two shards, each with a leader and a replica. We use haproxy to distribute requests between the four nodes.

      Regardless of which node we send an add request to, following a commit, the newly-added document is returned in a search, as expected.

      However, we can only delete a document if the delete request is sent to a node in the shard where the document was added. If we send the delete request to a node in the other shard (and then send a commit) the document is not deleted. Such a delete request will get a 200 response, with the following body:

      {'responseHeader'=>{'status'=>0,'QTime'=>7}}

      Apart from the the very low QTime, this is indistinguishable from a successful delete.

      Attachments

        1. SOLR-5980.patch
          15 kB
          Ishan Chattopadhyaya
        2. SOLR-5890-without-broadcast.patch
          23 kB
          Ishan Chattopadhyaya
        3. SOLR-5890.patch
          20 kB
          Ishan Chattopadhyaya
        4. SOLR-5890.patch
          15 kB
          Ishan Chattopadhyaya
        5. SOLR-5890.patch
          23 kB
          Ishan Chattopadhyaya
        6. SOLR-5890.patch
          29 kB
          Ishan Chattopadhyaya
        7. SOLR-5890.patch
          29 kB
          Ishan Chattopadhyaya
        8. SOLR-5890.patch
          30 kB
          Noble Paul
        9. SOLR-5890.patch
          31 kB
          Ishan Chattopadhyaya
        10. SOLR-5890.patch
          31 kB
          Ishan Chattopadhyaya
        11. 5890_tests.patch
          11 kB
          Ishan Chattopadhyaya

        Issue Links

        Activity

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

          People

            noble.paul Noble Paul
            inglesp Peter Inglesby
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment