diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2021-05-28 17:55:55 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-28 18:29:20 +0000 |
commit | 7bcd87d2a68662003792c886ab1b341cad3c667f (patch) | |
tree | 24c38139cbac07146f92ca2c68d67fb263cecc89 | |
parent | 56c4a10aeaf43b2ccc8142af7964339bc2619b99 (diff) | |
download | mongo-7bcd87d2a68662003792c886ab1b341cad3c667f.tar.gz |
SERVER-53624 Make sure that every test case that shuts down mongos has CallbackCanceled as an expected error
-rw-r--r-- | jstests/sharding/retryable_write_error_labels.js | 4 |
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 5b33e0f1733..37bb0dbdf31 100644 --- a/jstests/sharding/retryable_write_error_labels.js +++ b/jstests/sharding/retryable_write_error_labels.js @@ -161,7 +161,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)) { |