[SERVER-64046] Mongos does not return errorlabels if it is interrupted while parsing a request Created: 28/Feb/22 Updated: 06/Dec/22 Resolved: 28/Feb/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jason Zhang | Assignee: | [DO NOT USE] Backlog - Sharding Team |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Sharding
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
If we happen to interrupt mongos as we are parsing a given command, it is possible that we do not return the necessary errorlabels back to the client. Specifically if we fail before calling RunInvocation::run(), then the subsequent _handleException() does not append errorLabels. We should ideally try to append proper errorlabels whenever we respond to a client. |