[v8.0] Update remove_shard_with_unsharded.js to ignore ShardNotFound error on the last removeShard

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.0.13
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2025-09-29
    • 200
    • 1
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      In v8.0, a removeShard operation was still not idempotent (SERVER-102390), meaning that, in the presence of stepdowns, a removeShard operation may fail with a ShardNotFound error in case of retrying the operation due to a stepdown on the config server.

      Therefore, we need to update the remove_shard_with_unsharded.js test to ignore ShardNotFound errors on the final removeShard call. To do so, we can use the removeShard() function from the remove_shard_util.js file.

            Assignee:
            Silvia Surroca
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: