-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
In SERVER-53104 we make the configsvr tell the shards to refresh their db/collection caches after patching up the configsvr metadata as part of FCV upgrade.
In the presence of configsvr stepdowns, it cannot be ensured that the shard-local caches will be refreshed. Consider the following situation:
- Configsvr patches up config.databases to $set the 'timestamp' field. Then configsvr crashes here.
- On the next setFCV invocation, ShardingCatalogManager::_createDBTimestampsFor49 will be ran again, but it won't find any document in config.databases that matches the query '{timestamp: {$exists: false}}', so this tellShardsToRefreshDatabase won't execute because 'dbDocs' will be empty.
This same situation can happen for config.collections refresh here and here.
- related to
-
SERVER-53104 Ensure all shard-local cache collections of config.collections contain timestamps after upgrade
- Closed