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

run_check_repl_dbhash_background aborts all transactions after an error even if they've already successfully committed

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v4.0
    • STM 2018-12-31, STM 2019-01-14
    • 0
    • 2

    Description

      The dbHash command is run inside of a transaction in run_check_repl_dbhash_background.js on each node in the test's replica set. When committing the transactions, we will iterate over each session (one per node) and call commitTransaction. If any of these calls throws an error, we catch the error and iterate over each session to try to abort each transaction. But if any transaction was already successfully committed, trying to abort it errors with:

      Error: Cannot call abortTransaction after calling commitTransaction. :
      

      We should only try to abort transactions that are still active.

      Attachments

        Issue Links

          Activity

            People

              max.hirschhorn@mongodb.com Max Hirschhorn
              samy.lanka@mongodb.com Samyukta Lanka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: