-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
CAR Team 2024-11-11, CAR Team 2024-11-25
-
2
Problem
In the mongos create cmd code, we currently may return the createStatus error over any WriteConcern errors. This may lead to incompatibilities where we expect to retry on a WriteConcern error, but instead we fail due to the createStatus error being returned first.
Solution & Acceptance Criteria
We should prioritize sending any WriteConcern errors over other errors
Impact
This change leads to clearer and safer usage of the create command. It will also allow us to remove a workaround in mongosync where we manually handle NamespaceNotFound since it is send instead of a WriteConcern error
- depends on
-
SERVER-60933 Make the sharded cluster's 'create' command behave the same as replica set
- Closed
- is related to
-
SERVER-78311 mongos does not report writeConcernError in presence of writeErrors for insert command
- Closed
-
SERVER-80103 Mongos WriteConcernError Behavior Differs from Mongod
- Needs Scheduling