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

Only retry failed writes in a batch on stale version errors in a transaction

    XMLWordPrintableJSON

Details

    • Sharding NYC

    Description

      As of SERVER-35707, if any batch write encounters a stale shard version error, the router can only continue the transaction if this was the first overall statement received from the client. This is to avoid double applying writes because currently batch writes in a transaction must be entirely retried, unlike outside of a transaction where only the individual writes that failed will be retried. This ticket is to track changing batch write behavior in a transaction to only retry the failed writes to avoid aborting more than necessary in the face of migrations.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-sharding-nyc Backlog - Sharding NYC
              jack.mulrow@mongodb.com Jack Mulrow
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: