-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
Fully Compatible
-
CAR Team 2026-02-02
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The $merge requires to throw NamespaceNotFound when a db doesn't exist.
In case the router is stale, the NamespaceNotFound wont' be thrown and the db will be created.
Extra context
Implicit creation of the database is disallowed due to an old constraint of the server, where cluster writes would not create the db. I inferred this by this old conversation from the original commit of the test. This restriction seems to no longer exists, however, the NamespaceNotFound is a consequence of this forced refresh, required to establish some checks on the indexes.
Whether throw NamespaceNotFound or not should therefore be deferred to SERVER-95749
- is related to
-
SERVER-95749 Avoid force collection cache refresh in MongosProcessInterface::ensureFieldsUniqueOrResolveDocumentKey
-
- Open
-
- related to
-
SERVER-86712 support implicit db creation for $merge in a sharded cluster
-
- Backlog
-