-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
Catalog and Routing
-
CAR Team 2024-11-25
After SERVER-95393 [Dedicate a catalog cache and loader to the shard role] work, the shard now uses a ConfigServerCatalogCacheLoader to refresh its routing information.
Currently, if a shard's routing information is stale during a transaction, attempting to refresh the CatalogCache entry for a shard may trigger a ShardCannotRefreshDueToLocksHeld error. This approach may be overly pessimistic, given that the shard—whether primary or secondary—can now refresh its routing information through the config server without needing to write anything to disk nor take any locks.
The purpose of this ticket is to track an investigation into whether it is possible to refresh the CatalogCache within the transaction without generating a ShardCannotRefreshDueToLocksHeld error when consulting routing information.
- related to
-
SERVER-95393 Use a ConfigServerCatalogCacheLoader for the router-role and a ShardServerCatalogCacheLoader for the shard-role
- Closed