[SERVER-47212] Retry full upsert path when duplicate key exception matches exact query predicate in findAndModify Created: 31/Mar/20  Updated: 29/Oct/23  Resolved: 07/May/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Gregory Noma Assignee: Svilen Mihaylov (Inactive)
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Cloners
clones SERVER-59758 findAndModify with upsert=true genera... Closed
Duplicate
is duplicated by SERVER-59758 findAndModify with upsert=true genera... Closed
is duplicated by SERVER-60252 `findAndModify` does not retry on uni... Closed
Related
related to SERVER-51354 Complete TODO listed in SERVER-47212 Closed
related to SERVER-14322 Retry on predicate unique index viola... Closed
related to SERVER-37124 Retry full upsert path when duplicate... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Query 2020-04-20, Query 2020-05-04, Query 2020-05-18
Participants:
Case:
Linked BF Score: 33

 Description   

As of SERVER-37124, this behavior is true for update commands and should be extended to be true for findAndModify as well. See the linked ticket for more details.



 Comments   
Comment by Githook User [ 20/Oct/20 ]

Author:

{'name': 'Svilen Mihaylov', 'email': 'svilen.mihaylov@mongodb.com', 'username': 'smihaylov-mongodb'}

Message: SERVER-51354 Complete TODO listed in SERVER-47212
Branch: master
https://github.com/mongodb/mongo/commit/fcc8bc252fc62ce96ed4ce02655997a2e232fd38

Comment by Githook User [ 07/May/20 ]

Author:

{'name': 'Svilen Mihaylov', 'email': 'svilen.mihaylov@mongodb.com', 'username': 'smihaylov-mongodb'}

Message: SERVER-47212: Retry full upsert path when duplicate key exception matches exact query predicate in findAndModify.
Branch: master
https://github.com/mongodb/mongo/commit/19cf490787824b918df12c9a932501c0f6e01cda

Comment by Svilen Mihaylov (Inactive) [ 06/May/20 ]

https://mongodbcr.appspot.com/581310001/

Generated at Thu Feb 08 05:13:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.