-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
44
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.
- is duplicated by
-
SERVER-59474 Return a shutdown error as top-level error for batch write command that fails with CallbackCanceled when mongos shuts down
- Closed
- is related to
-
SERVER-53624 4.4 mongos does not attach RetryableWriteError label to shutdown errors
- Closed
-
SERVER-55648 Mongos doesn't return top-level batch-write error in case of shutdown
- Closed