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

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

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

      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:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: