diff options
author | Judah Schvimer <judah@mongodb.com> | 2019-05-20 16:10:46 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2019-05-20 16:10:46 -0400 |
commit | b205efb00fd6e9ce27646070e934983384e8c0e2 (patch) | |
tree | 76580416b9c78d4e3290c680907aebd350873a62 /src/mongo/shell/replsettest.js | |
parent | fae0c3f0fa4d5dfbe2f4fb03715b60e9ce3e2d93 (diff) | |
download | mongo-b205efb00fd6e9ce27646070e934983384e8c0e2.tar.gz |
SERVER-41216 Rename InterruptedDueToStepDown error code to InterruptedDueToReplStateChange
Diffstat (limited to 'src/mongo/shell/replsettest.js')
-rw-r--r-- | src/mongo/shell/replsettest.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js index 565fd3fb7b5..47b071385c4 100644 --- a/src/mongo/shell/replsettest.js +++ b/src/mongo/shell/replsettest.js @@ -939,7 +939,7 @@ var ReplSetTest = function(opts) { [ ErrorCodes.NodeNotFound, ErrorCodes.NewReplicaSetConfigurationIncompatible, - ErrorCodes.InterruptedDueToStepDown + ErrorCodes.InterruptedDueToReplStateChange ], errorMsg); return result.ok; @@ -982,8 +982,8 @@ var ReplSetTest = function(opts) { // replSetInitiate and replSetReconfig commands can fail with a NodeNotFound error if a // heartbeat times out during the quorum check. They may also fail with // NewReplicaSetConfigurationIncompatible on similar timeout during the config validation - // stage while deducing isSelf(). This can fail with an InterruptedDueToStepDown error when - // interrupted. We try several times, to reduce the chance of failing this way. + // stage while deducing isSelf(). This can fail with an InterruptedDueToReplStateChange + // error when interrupted. We try several times, to reduce the chance of failing this way. replSetCommandWithRetry(master, cmd); this.getPrimary(); // Blocks until there is a primary. |