You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/11/08 22:29:00 UTC

[jira] [Commented] (SOLR-15705) Distribute a DeleteById to all shards when using the CompositeId router with a router field defined and field value is missing in request

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

ASF subversion and git services commented on SOLR-15705:
--------------------------------------------------------

Commit f589607e700a94544fc546f5d641b5bfd695f32b in solr's branch refs/heads/main from Michael Kosten
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=f589607 ]

SOLR-15705: A deleteById request without _route_ param for compositeid router could be sent to all shard leaders (#288)



> Distribute a DeleteById to all shards when using the CompositeId router with a router field defined and field value is missing in request
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-15705
>                 URL: https://issues.apache.org/jira/browse/SOLR-15705
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>            Reporter: Michael Kosten
>            Assignee: David Eric Pugh
>            Priority: Major
>          Time Spent: 5.5h
>  Remaining Estimate: 0h
>
> When issuing a DeleteById command for a collection using the CompositeId router with a router field defined and the route value is missing from the request, the DeleteById fails silently, even if it happens to have been sent to the correct shard. Instead of failing silently, the request could be forwarded to all shard leaders and from there to all replicas. Another required change is that the deletion would need to be performed even though the route value is missing. The deletion would be a no-op on the shards where the document does not exist.
> One use case for this feature is when the routing key value is volatile and you need to guarantee no duplicates exist when updating a document if it happens to change shards. Another use case is if you want to delete a document without referencing a database to retrieve the route field value.
> A work-around is to use a DeleteByQuery. However, my testing has found that DeleteById performs significantly better, even when sent to all shards. Additionally, I've found that a heavy mixed load of DeleteByQuery commands and Add commands can lead to node failures when there are multiple replicas.
> Additional comments are in SOLR-6910, however, that JIRA is specific to the implicit router and I mistakenly added them there.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org