Unify error codes returned by mongod for requests with autocommit:false outside a transaction

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Sharding
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, if mongod receives a request with autocommit:false and a txnId (txnNumber/lsid pair) that has not been seen yet, it will return ErrorCodes::NoSuchTransaction. If a retryable write with the same txnId was completed earlier on that session though, the request with autocommit:false would instead return ErrorCodes::InvalidOptions.

      Running a command with autocommit:false and a txnId is a valid combination of options and it isn't really intuitive for a retryable write to change the error code, so I think the code should always be NoSuchTransaction.

              Assignee:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Jack Mulrow
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: