[SERVER-73553] Ensure mongos create command returns WriteConcern with higher precedence over NamespaceNotFound Created: 02/Feb/23 Updated: 26/Oct/23 |
|
| Status: | Open |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Xuerui Fa | Assignee: | Backlog - Catalog and Routing |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | oldshardingemea, shardingemea-qw | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Catalog and Routing
|
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Story Points: | 2 | ||||||||||||||||||||
| Description |
ProblemIn 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 CriteriaWe should prioritize sending any WriteConcern errors over other errors ImpactThis 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 |