[ 
https://issues.apache.org/jira/browse/SOLR-5890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13945619#comment-13945619
 ] 

Brett Hoerner commented on SOLR-5890:
-------------------------------------

I see. Would you agree it's a bit odd that I can add a different \_route\_ to 
1000 documents and send them in a single UpdateRequest, but if I want to delete 
1000 different documents by ID I need to set a top-level \_route\_ on the 
entire request (vs somehow setting it per delete)? That, to me, is the first 
class bit that's missing.

I'm not asking someone to write it for me, btw. :) I just want to make sure my 
idea is sane here.

> Delete silently fails if not sent to shard where document was added
> -------------------------------------------------------------------
>
>                 Key: SOLR-5890
>                 URL: https://issues.apache.org/jira/browse/SOLR-5890
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.7
>         Environment: Debian 7.4.
>            Reporter: Peter Inglesby
>             Fix For: 4.8, 5.0, 4.7.1
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to