[SERVER-37374] cleanupOnLastIteration() should tolerate an interruption for multi_statement_transaction_all_commands.js Created: 28/Sep/18  Updated: 29/Oct/23  Resolved: 09/Oct/18

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

Type: Bug Priority: Major - P3
Reporter: Janna Golden Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-37009 Handle missing sessionDocToKill in sn... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2018-10-22
Participants:
Linked BF Score: 11

 Description   

cleanupOnLastIteration() is used in both snapshot_read_kill_operations and multi_statement_transaction_all_commands.js. It should tolerate an abort errorCode of `interrupted` for snapshot_read_kill_operations.js only, so we should change cleanupOnLastIteration() to take abortErrorCodes as a parameter. Then, we can pass `[ErrorCodes.NoSuchTransaction, ErrorCodes.TransactionCommitted, ErrorCodes.TransactionTooOld]` for multi_statement_transaction_all_commands.js, and also add `ErrorCodes.Interrupted` for snapshot_read_kill_operations.js.



 Comments   
Comment by Githook User [ 09/Oct/18 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-37374 cleanupOnLastIteration should tolerate an interruption
Branch: master
https://github.com/mongodb/mongo/commit/f862975d40d5cb8d848892dfa6990994ae586e4b

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