[SERVER-59119] Intermittent Duplicate key exception on upserting an existing document Created: 05/Aug/21 Updated: 18/Oct/21 Resolved: 18/Oct/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Rahul Jangra | Assignee: | Eric Sedor |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
I am facing a duplicate key exception intermittently when trying to upsert an existing document.
Is there any other possible sequence of events where we can get duplicate key exception.
|
| Comments |
| Comment by Eric Sedor [ 18/Oct/21 ] |
|
rahul.jangra@airtel.com I'm going to close this ticket, but again, if you see issues occurring on a currently supported version (4.0+ at this time), we would be happy to reopen the ticket or address a new ticket. |
| Comment by Eric Sedor [ 24/Sep/21 ] |
|
I apologize for the delay. MongoDB 3.6 reached end of life in April of 2021. Would you be able to move to a currently supported version (MongoDB 4.0+), and see if this issue reoccurs? If so, that would allow us to investigate it here. Gratefully, |
| Comment by Rahul Jangra [ 11/Aug/21 ] |
|
Hi Eric, I am using mongodb 3.6 There is a small difference between the scenario mentioned in the linked tickets and the scenario that I am asking above. So my question is ->
|
| Comment by Eric Sedor [ 10/Aug/21 ] |
|
Hi rahul.jangra@airtel.com, can you clarify what version of MongoDB you are running? I ask because |
| Comment by Rahul Jangra [ 06/Aug/21 ] |
|
UPDATE: seeing a lot of slow queries on this collection recently, do you think "upsert" will try to "insert" if the query fails or query timesout due to a slow query ? |