[SERVER-56261] Invariant failure at hasTransientTransactionOrRetryableWriteError Created: 22/Apr/21  Updated: 29/Oct/23  Resolved: 20/May/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 4.4.4
Fix Version/s: 4.4.7, 5.0.0-rc1, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Dmitry Agranat Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: Atlas_Failure_Analysis
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-54534 No need to wait for writeConcern on a... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4
Sprint: Sharding 2021-05-03, Sharding 2021-05-31
Participants:

 Description   

{"t":{"$date":"2021-04-08T13:25:49.833+00:00"},"s":"F",  "c":"-",        "id":23079,   "ctx":"conn21888","msg":"Invariant failure","attr":{"expr":"!hasTransientTransactionOrRetryableWriteError","file":"src/mongo/db/error_labels.cpp","line":124}}
{"t":{"$date":"2021-04-08T13:25:49.833+00:00"},"s":"F",  "c":"-",        "id":23080,   "ctx":"conn21888","msg":"\n\n***aborting after invariant() failure\n\n"}
{"t":{"$date":"2021-04-08T13:25:49.839+00:00"},"s":"F",  "c":"CONTROL",  "id":4757800, "ctx":"conn21888","msg":"Writing fatal message","attr":{"message":"Got signal: 6 (Aborted).\n"}}



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 02/Jun/21 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-56261 remove invariant that RetryableWriteError and TransientTransactionError are mutually exclusive

(cherry picked from commit 0dab95acc0d5dca595873bc94b8323e188f3b302)
Branch: v4.4
https://github.com/mongodb/mongo/commit/873c94200f93532bf730564ba34874413ede3cd0

Comment by Githook User [ 01/Jun/21 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-56261 remove invariant that RetryableWriteError and TransientTransactionError are mutually exclusive

(cherry picked from commit 0dab95acc0d5dca595873bc94b8323e188f3b302)
Branch: v5.0
https://github.com/mongodb/mongo/commit/fbe065462ef1accb2de846e88c42130bb0ff8e6d

Comment by Githook User [ 20/May/21 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-56261 remove invariant that RetryableWriteError and TransientTransactionError are mutually exclusive
Branch: master
https://github.com/mongodb/mongo/commit/0dab95acc0d5dca595873bc94b8323e188f3b302

Comment by Haley Connelly [ 17/May/21 ]

After speaking with lingzhi.deng we've decided to replace the failing invariant with an if - else - If there is already a transientTransaction error, don't append the retryable error label. 

Comment by Haley Connelly [ 30/Apr/21 ]

dmitry.agranat looks like the FTDC starts from April 16th but the logs are from April 8th. 

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