-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
ALL
-
150
-
1
The CheckShardFilteringMetadata hook is executed on teardown of ShardingTest. Its intent is to iterate on each existing shard (according to config.shards) to:
- first wait for replication activities across the shard nodes to complete
- then perform a per-node check of the local metadata against the content of the config catalog
but It turns out that the first step is implemented through a second loop through all the shards of the cluster - according to the ShardingTest._rs array field. This logic is unable to target replica sets that are added to the sharded cluster after the creation of ShardingTest and keep forming part of the cluster by the time {{ShardingTest.stop }} is invoked (example).
The test hook may hence check secondary nodes of such ReplicaSets while filtering metadata are still being replicated, leading to test failures.
- is related to
-
SERVER-88403 Modify check_shard_filtering_metadata.js to avoid spurious failures when running checkShardFilteringMetadata
- Closed