[SERVER-64642] Fix error where mongos returns CallbackCanceled and not InterruptedAtShutdown on shutdown Created: 18/Mar/22  Updated: 29/Oct/23  Resolved: 21/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.20

Type: Bug Priority: Major - P3
Reporter: Andrew Witten (Inactive) Assignee: Andrew Witten (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-59474 Return a shutdown error as top-level ... Closed
Related
is related to SERVER-53624 4.4 mongos does not attach RetryableW... Closed
is related to SERVER-55648 Mongos doesn't return top-level batch... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 44

 Description   

The test retryable_mongos_write_errors.js does the following:
1. Set failpoint hangAfterCollectionInserts so that inserts never complete.
2. Initiate a batch insert (which won't complete).
3. Stop the mongos.
4. Assert that the returned error code is InterruptedAtShutdown (which is retryable).

We have a bug where the returned error code is CallbackCanceled. Additionally, CallbackCanceled is not being returned as a top level error. Instead it is being written into the writeErrors field of the response. SERVER-55648 indicates that it should be a top-level error. We should fix this.

This is an issue in version 4.2.x.



 Comments   
Comment by Githook User [ 21/Mar/22 ]

Author:

{'name': 'Andrew Witten', 'email': 'andrew.witten@mongodb.com', 'username': 'awitten1'}

Message: SERVER-64642 handle CallbackCanceled error code in batch_write_exec.cpp
Branch: v4.2
https://github.com/mongodb/mongo/commit/e2f27369cdfb8c417b026afb323c810226417206

Generated at Thu Feb 08 06:00:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.