-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
Fully Compatible
-
CAR Team 2024-09-16, CAR Team 2024-10-28
-
2
Currently, the database metadata is not refreshed when getCollectionRoutingInfoWithRefresh() is called.
In the past, this has caused some bugs, all linked to SERVER-86671.
It's easy to fall into the assumption that getCollectionRoutingInfoWithRefresh() will also refresh the database metadata for the following reasons:
- The database metadata can also be used to route a collection, in particular when this collection is unsharded and untracked.
- The method getCollectionRoutingInfoWithRefresh() indirectly returns the db metadata nested inside a ChunkManager object.
- depends on
-
SERVER-94898 Remove redundant CatalogCache getter functions
- Closed
- fixes
-
SERVER-93523 Refresh db metadata under CollectionRoutingInfoTargeter::refreshIfNeeded
- Closed
- related to
-
SERVER-86671 CollectionRoutingInfo could contain stale database information even after refresh
- Closed