summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2021-05-28 17:55:55 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-28 18:45:14 +0000
commit80884e7b1e1866a8b3349af6c407f23374dbfa80 (patch)
tree1dff89462615bd7537b2bbd0aa16b1a8528398c6
parent51f0e0eba436376e5b2bc83c25b30b77bcf4a253 (diff)
downloadmongo-80884e7b1e1866a8b3349af6c407f23374dbfa80.tar.gz
SERVER-53624 Make sure that every test case that shuts down mongos has CallbackCanceled as an expected error
(cherry picked from commit 7bcd87d2a68662003792c886ab1b341cad3c667f)
-rw-r--r--jstests/sharding/retryable_write_error_labels.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/sharding/retryable_write_error_labels.js b/jstests/sharding/retryable_write_error_labels.js
index a693fc0a31c..368759f312d 100644
--- a/jstests/sharding/retryable_write_error_labels.js
+++ b/jstests/sharding/retryable_write_error_labels.js
@@ -153,7 +153,9 @@ function testMongosError() {
MongoRunner.stopMongos(st.s);
try {
const retryableInsertRes = retryableInsertThread.returnData();
- checkErrorCode(retryableInsertRes, ErrorCodes.InterruptedAtShutdown, false /* isWCError */);
+ checkErrorCode(retryableInsertRes,
+ [ErrorCodes.InterruptedAtShutdown, ErrorCodes.CallbackCanceled],
+ false /* isWCError */);
assertContainRetryableErrorLabel(retryableInsertRes);
} catch (e) {
if (!isNetworkError(e)) {