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

CheckMetadataConsistencyInBackground hook is not robust to ShardNotFound

    XMLWordPrintableJSON

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: