mongos should retry write upon getting ShardCannotRefreshDueToLocksHeld error from shard

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v5.0
    • Sharding EMEA 2021-07-26
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Shards retry ShardCannotRefreshDueToLocksHeld locally one single time after refreshing the catalog cache, but if on the retry it hits the same error (because the collection metadata was invalidated again after the refresh) then the ShardCannotRefreshDueToLocksHeld error is propagated to the router.

      The router should retry on this error, but it doesn't because it isn't in this list of errors to be retried on write_op

              Assignee:
              Jordi Serra Torrens
              Reporter:
              Jordi Serra Torrens
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: