Remove the sleep in the catalog cache added by SERVER-71168, designed to allow time for the config time to advance beyond the creation time of config.csrs.indexes.
Context:
During FCV upgrade when enabling theĀ
gGlobalIndexesShardingCatalog feature flag, we are creating a new collection on the config server - config.csrs.indexes. The mongoS is also running an aggregation on this collection with snapshot read concern. Since the mongoS has no concept of FCV, it will start sending the aggregation to the config server as soon as the binary is changed to one with the feature flag enabled, regardless of the FCV of the config server. We have encountered the SnapshotUnavailable error after creating the collection and its indexes but before the journal flush happens.
Once this project finishes, presumably the aggregation will return NamespaceNotFound at the previous config time sent in the aggregation rather than SnapshotUnavailable, and the sleep to allow for journaling to complete can be removed.
- depends on
-
SERVER-67289 Remove Feature Flag for PM-2218
- Closed