-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
Sharding EMEA
-
ALL
-
Sharding EMEA 2021-11-29, Sharding EMEA 2021-12-13, Sharding EMEA 2021-12-27
-
11
-
3
When a createCollection command is forwarded from the router to the database primary, it is possible to get a NamespaceExists error in case the collection already exists. When this happens, a listCollection command is issued in order to decide whether to return or not an error to the client (fail in case the collection exists with different options).
However, there is no guarantee that a collection does not get dropped before the call to listCollection. In case this happens, currently a "cannot find ns" error message is returned, that is very misleading considering that the command should create the namespace.
- duplicates
-
SERVER-60064 Make create command idempotent on mongod
- Closed
- is depended on by
-
SERVER-73553 Ensure mongos create command returns WriteConcern with higher precedence over NamespaceNotFound
- Open
- is duplicated by
-
SERVER-67828 Create collection on sharded cluster should not return NamespaceNotFound
- Closed