diff options
Diffstat (limited to 'jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js')
-rw-r--r-- | jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js b/jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js index f78f7d17b8e..233f44ca68b 100644 --- a/jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js +++ b/jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js @@ -61,7 +61,13 @@ function doSnapshotFind(sortByAscending, collName, data, findErrorCodes) { autocommit: false }; res = data.sessionDb.adminCommand(abortCmd); - assertWorkedOrFailed(abortCmd, res, [ErrorCodes.NoSuchTransaction]); + const abortErrorCodes = [ + ErrorCodes.NoSuchTransaction, + ErrorCodes.TransactionCommitted, + ErrorCodes.TransactionTooOld, + ErrorCodes.Interrupted + ]; + assertWorkedOrFailed(abortCmd, res, abortErrorCodes); data.cursorId = 0; } else { assert(cursor.hasOwnProperty("firstBatch"), tojson(res)); |