When a shard is removed from a cluster, both shards and routers invalidate metadata for all namespaces associated with the removed shard:
- mongos_main.cpp (lines 424-432)
- sharding_initialization_mongod.cpp (lines 556-564)
This invalidation implies that the next access to the metadata may trigger a full refresh for the affected namespace.
color: Color value is invalid
A more efficient approach would be to advance the version for all namespaces associated with the removed shard so that the next access to the metadata would trigger a partial refresh instead.
- is caused by
-
SERVER-32871 ReplicaSetMonitorRemoved and ShardNotFound errors on fanout query after removing a shard
-
- Closed
-