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

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Replication
    • ALL

      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.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            maria.vankeulen@mongodb.com Maria van Keulen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: