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

CheckMetadataConsistencyInBackground hook is not robust to ShardNotFound

    • Sharding EMEA
    • Fully Compatible
    • ALL
    • v7.0
    • Sharding EMEA 2023-06-26
    • 20
    • 2

      The clusterwide_ops_with_add_remove_shards.js verifies that those operations that must be run on all shards do not crash when adding or removing shards. As the CheckMetadataConsistencyInBackground is run concurrently with that jstest, it is possible for the mongos to refresh its ShardRegistry after choosing to target one shard, throwing ShardNotFound error.

      One possible solution is to handle ShardNotFound error in the same way as CheckMetadataConsistencyInBackground does for retryable errors.

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: