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

refine_collection_shard_key_basic.js relies on a best-effort refresh that might not happen in case of failover

    XMLWordPrintable

Details

    • Fully Compatible
    • v5.0, v4.4
    • Sharding EMEA 2022-01-10
    • 28

    Description

      In refine_collection_shard_key_basic.js, we refine the shard key and then wait for the shards to discover the new collection epoch.
      In absence of a mongoS that discovers the new epoch and then queries the shards with that shardVersion, the shard would only discover the new epoch through this best-effort refresh triggered at the end of _configsvrRefineCollectionShardKey. In stepdown suites, this refresh might fail.

      refine_collection_shard_key_basic.js should either:
      1. Not test this particular condition (at least, on stepdown suites)
      2. Ensure that the shards discover the new shard version by having a mongos first see it and having it query the shards with it.

      Attachments

        Activity

          People

            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: