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

Differentiate retryable writes from writes in a transaction on mongos

    • Fully Compatible
    • Sharding 2018-11-05
    • 0

      Currently, mongos interprets the presence of a txnNumber in a write request to mean it is a retyable write, and it uses an idempotent retry policy when sending these writes to shards. Now that mongos supports transactions, writes within a transaction will also have a txnNumber, but they are not retryable, so they should use the default no retry policy instead.

      This should be done for insert/update/delete and findAndModify.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: