Differentiate retryable writes from writes in a transaction on mongos

XMLWordPrintableJSON

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

      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
              Reporter:
              Jack Mulrow
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: