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

Allow retryable write in resharding_replicate_updates_as_insert_delete.js to fail with ShardCannotRefreshDueToLocksHeld

    • Fully Compatible
    • v5.0
    • Sharding 2021-09-20
    • 113
    • 1

      The retryable write to update the shard key value under the new key pattern is implicitly converted into a multi-statement transaction. If the multi-statement transaction fails due to the donor shard not having the routing information for the temporary resharding collection loaded, then mongos won't automatically retry it. ShardCannotRefreshDueToLocksHeld should therefore be considered an acceptable error.

            Assignee:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: