summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2019-05-20 16:10:46 -0400
committerJudah Schvimer <judah@mongodb.com>2019-05-20 16:10:46 -0400
commitb205efb00fd6e9ce27646070e934983384e8c0e2 (patch)
tree76580416b9c78d4e3290c680907aebd350873a62 /jstests/libs
parentfae0c3f0fa4d5dfbe2f4fb03715b60e9ce3e2d93 (diff)
downloadmongo-b205efb00fd6e9ce27646070e934983384e8c0e2.tar.gz
SERVER-41216 Rename InterruptedDueToStepDown error code to InterruptedDueToReplStateChange
Diffstat (limited to 'jstests/libs')
-rw-r--r--jstests/libs/override_methods/network_error_and_txn_override.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/libs/override_methods/network_error_and_txn_override.js b/jstests/libs/override_methods/network_error_and_txn_override.js
index f7e7b331600..7b4d64a0353 100644
--- a/jstests/libs/override_methods/network_error_and_txn_override.js
+++ b/jstests/libs/override_methods/network_error_and_txn_override.js
@@ -197,7 +197,7 @@
// TODO SERVER-32208: Remove this function once it is no longer needed.
function isRetryableExecutorCodeAndMessage(code, msg) {
return code === ErrorCodes.OperationFailed && typeof msg !== "undefined" &&
- msg.indexOf("InterruptedDueToStepDown") >= 0;
+ msg.indexOf("InterruptedDueToReplStateChange") >= 0;
}
// Returns true if the given response could have come from shardCollection being interrupted by
@@ -818,7 +818,7 @@
}
// Thrown when an index build is interrupted during its collection scan.
- if (cmdName === "createIndexes" && res.codeName === "InterruptedDueToStepDown") {
+ if (cmdName === "createIndexes" && res.codeName === "InterruptedDueToReplStateChange") {
logError("Retrying because of interrupted collection scan");
return kContinue;
}