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

mongos should retry write upon getting ShardCannotRefreshDueToLocksHeld error from shard

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

      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@mongodb.com Jordi Serra Torrens
            Reporter:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: