Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38853

run_check_repl_dbhash_background.js should ignore abortTransaction errors

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 4.0.0
    • Component/s: Replication
    • Labels:
      None
    • ALL
    • Repl 2019-01-14

      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
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: