-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
The shard_aware_primary_failover.js test involves attempting to add a shard by updating its shard identity document with an update to the `admin.system.version` collection. It then shuts down the primary and verifies that the shardingState command returns the expected results, indicating that the shard has been successfully added to the sharded cluster.
Firstly, we can achieve this using the addShard command.
Secondly, there may be other tests already performing this behavior, and we may consider removing it.