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

run_check_repl_dbhash_background.js should ignore abortTransaction errors

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • 4.0.0
    • None
    • Replication
    • None
    • ALL
    • Repl 2019-01-14

    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
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: