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

Harden shard removal in a `store_historical_placement_data.js` test teardown

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.9, 8.1.0-rc0, 7.3.2, 8.0.0-rc2
    • Affects Version/s: 7.0.0, 8.0.0-rc0, 7.3.0, 8.1.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • v8.0, v7.3, v7.0
    • CAR Team 2024-04-29
    • 18

      The teardown of the testAddShard test case of jstests/sharding/store_historical_placement_data.js removes a technical shard that is added in the setup for the specific purposes of the test case.
       
      Suppose the primary node of the config server steps down right after removing the config.shards document of the shard but before responding with the completed state, the test retries the command against the new primary node, which would not find the removed shard in its ShardRegistry. This would cause the second attempt to fail with ShardNotFound.
       
      The goal of this ticket is to hard the shard removal to consider the scenario above.

            Assignee:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Reporter:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: