[SERVER-79014] Update the `hasKilledSessionError()` helper to also check the `writeError` key for an Interrupt code Created: 17/Jul/23  Updated: 29/Oct/23  Resolved: 17/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding NYC 2023-07-24, Sharding NYC 2023-08-07, Sharding NYC 2023-08-21
Participants:
Linked BF Score: 5

 Description   

At the moment the `hasKilledSessionError()` helper  does not check the `writeError` key for an `Interrupt` error code. This results in some transactions not being retried when they should be as this helper is used by `auto_retry_transactions.js`  to determine if a transaction should be retried. 



 Comments   
Comment by Githook User [ 15/Aug/23 ]

Author:

{'name': 'wenqinYe', 'email': 'wenqin908@gmail.com', 'username': 'wenqinYe'}

Message: SERVER-79014: Update the `hasKilledSessions()` helper to also check the `writeError` key for an Interrupt code
Branch: master
https://github.com/mongodb/mongo/commit/3c32e94423c6ce02033f40a1d61cd4d9fb4ed8a5

Comment by Max Hirschhorn [ 26/Jul/23 ]

Reopening this ticket because the commit queue merge failed.

Generated at Thu Feb 08 06:39:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.