[SERVER-49936] ephemeralForTest can throw WriteConflictException when only one branch changed Created: 27/Jul/20  Updated: 29/Oct/23  Resolved: 29/Jul/20

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

Type: Bug Priority: Major - P3
Reporter: Henrik Edin Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-49674 ephemeralForTest can hit invariant in... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 0

 Comments   
Comment by Navavaneetha rao P Y [ 25/Sep/20 ]

Hi, we are receiving following error(as shown below) ,  We have 3 (1 primary , 2 secondary) node replica set instance and while building index we received this error. And we had difficulties in recovering our setup.  

mongo version 4.4.1 

*

{"t":

{"$date":"2020-09-21T16:00:08.250+00:00"}

,"s":"F", "c":"-", "id":23081, "ctx":"IndexBuildsCoordinatorMongod-25","msg":"Invariant failure","attr":{"expr":"status.isA<ErrorCategory::Interruption>() || status.isA<ErrorCategory::ShutdownError>()","msg":"Unnexpected error code during index build cleanup: WriteConflict: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.","file":"src/mongo/db/index_builds_coordinator.cpp","line":2090}}*

*

{"t":

{"$date":"2020-09-21T16:00:08.251+00:00"}

,"s":"F", "c":"-", "id":23082, "ctx":"IndexBuildsCoordinatorMongod-25","msg":"\n\n**aborting after invariant() failure\n\n"}
*

{"t":

{"$date":"2020-09-21T16:00:08.252+00:00"}

,"s":"F", "c":"CONTROL", "id":4757800, "ctx":"IndexBuildsCoordinatorMongod-25","msg":"Writing fatal message","attr":{"message":"Got signal: 6 (Aborted).\n"}}*

Comment by Githook User [ 29/Jul/20 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-49936 Fix so ephemeralForTest does not throw write conflict exception when only other branch actually made a change
Branch: master
https://github.com/mongodb/mongo/commit/e70bec2633f03c273e4e70e9c1570b5368d91210

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