You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Anshum Gupta (Jira)" <ji...@apache.org> on 2022/06/09 17:17:00 UTC

[jira] [Assigned] (SOLR-16218) failOnVersionConflicts not working on in-place updates

     [ https://issues.apache.org/jira/browse/SOLR-16218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anshum Gupta reassigned SOLR-16218:
-----------------------------------

    Assignee: Anshum Gupta

> failOnVersionConflicts not working on in-place updates
> ------------------------------------------------------
>
>                 Key: SOLR-16218
>                 URL: https://issues.apache.org/jira/browse/SOLR-16218
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Lamine
>            Assignee: Anshum Gupta
>            Priority: Minor
>
>  
> *Description*
> Fix a bug in in-place update when _failOnVersionConflicts_=false.
> When sending in-place/atomic updates for a non-existent doc with __version_=1_ Solr throws 409 error even if _failOnVersionConflicts_ is set to _false_.
>  
>  *Steps to Reproduce*
> - Send an update request (single or batch) that includes Update in-place/atomic command of a non-existent doc.
> - Set _Version_=1
> - Solr will throw 409 exception with  "_Document not found for update_" message error.
> Set failOnVersionConflicts=false
> - Solr still throws the same error.
>  
>   *Expected* 
> if _failOnVersionConflicts=false_ Solr should ignore the error silently and continue processing the rest of the commands.
>  *Actual Result*
> Solr throws 409 exception with  "_Document not found for update_" message error.
>  *Solution*
> Check in _getUpdatedDocument_ if _failOnVersionConflicts=true_ before throwing the exception.
>  *Tests*
> Added test cases catching the expected behavior when __failOnVersionConflicts_ is set to _true_ or _false_ (default is true).
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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