[SERVER-38853] run_check_repl_dbhash_background.js should ignore abortTransaction errors Created: 04/Jan/19  Updated: 04/Jan/19  Resolved: 04/Jan/19

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

Type: Bug Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-38182 run_check_repl_dbhash_background abor... Closed
Operating System: ALL
Sprint: Repl 2019-01-14
Participants:

 Description   

The run_check_repl_dbhash_background.js script may or may not call commitTransaction before it catches an expected exception and calls abortTransaction. If it does call commitTransaction first, then abortTransaction is prohibited (per spec) and throws a client-side error:

[CheckReplDBHashInBackground:job2:prepare_requires_fcv42:CheckReplDBHashInBackground] 2018-12-21T23:11:11.336+0000 2018-12-21T23:11:11.330+0000 E QUERY [js] Error: Cannot call abortTransaction after calling commitTransaction. :
[CheckReplDBHashInBackground:job2:prepare_requires_fcv42:CheckReplDBHashInBackground] 2018-12-21T23:11:11.337+0000 abortTransaction@src/mongo/shell/session.js:788:1
[CheckReplDBHashInBackground:job2:prepare_requires_fcv42:CheckReplDBHashInBackground] 2018-12-21T23:11:11.337+0000 abortTransaction_forTesting@src/mongo/shell/session.js:980:24
[CheckReplDBHashInBackground:job2:prepare_requires_fcv42:CheckReplDBHashInBackground] 2018-12-21T23:11:11.337+0000 @jstests/hooks/run_check_repl_dbhash_background.js:274:25
[CheckReplDBHashInBackground:job2:prepare_requires_fcv42:CheckReplDBHashInBackground] 2018-12-21T23:11:11.337+0000 @jstests/hooks/run_check_repl_dbhash_background.js:18:2


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