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

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Sprint:
      STM 2018-12-31, STM 2019-01-14
    • Linked BF Score:
      0
    • Story Points:
      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

              Assignee:
              max.hirschhorn Max Hirschhorn
              Reporter:
              samy.lanka Samyukta Lanka
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: