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

opCtx->inMultiDocumentTransaction() is set to true for test case run "outside" of a transaction

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Replication
    • ALL

    Description

      In this test case, we attempt to run a command “outside” of a transaction. This test case currently reaches the branch where we set inMultiDocumentTransaction to true on the OperationContext, since it's a case where we specify txnNumber and autocommit=false.

      Eventually, the test case will fail this validation, but until then, opCtx->inMultiDocumentTransaction is true.

      It seems to be a bug that opCtx->inMultiDocumentTransaction is true even though the test case should eventually fail with NoSuchTransaction.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            maria.vankeulen@mongodb.com Maria van Keulen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: