summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@mongodb.com>2021-04-28 15:07:12 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-28 21:21:53 +0000
commit6e88994a34e7882e1c9692fea653ed625e6e1c1b (patch)
tree52c2525568dcd30ac00ee8402bd435882b9626f5 /src
parentbac820d6c23ffcf8f21fbb2ddf3338bff3dccc43 (diff)
downloadmongo-6e88994a34e7882e1c9692fea653ed625e6e1c1b.tar.gz
SERVER-56415 AwaitNodesAgreeOnPrimary doesn't work when given non-default set of nodes
Diffstat (limited to 'src')
-rw-r--r--src/mongo/shell/replsettest.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js
index b8784dbd262..39de508bf83 100644
--- a/src/mongo/shell/replsettest.js
+++ b/src/mongo/shell/replsettest.js
@@ -990,8 +990,8 @@ var ReplSetTest = function(opts) {
// Node sees two primaries.
if (nodesPrimary !== -1) {
print("AwaitNodesAgreeOnPrimary: Retrying because " + nodes[i].name +
- " thinks both " + nodes[nodesPrimary].name + " and " +
- nodes[j].name + " are primary.");
+ " thinks both " + self.nodes[nodesPrimary].name + " and " +
+ self.nodes[j].name + " are primary.");
return false;
}
@@ -1013,13 +1013,13 @@ var ReplSetTest = function(opts) {
primary = nodesPrimary;
} else if (primary !== nodesPrimary) {
print("AwaitNodesAgreeOnPrimary: Retrying because " + nodes[i].name +
- " thinks the primary is " + nodes[nodesPrimary].name + " instead of " +
- nodes[primary].name);
+ " thinks the primary is " + self.nodes[nodesPrimary].name +
+ " instead of " + self.nodes[primary].name);
return false;
}
}
- print("AwaitNodesAgreeOnPrimary: Nodes agreed on primary " + nodes[primary].name);
+ print("AwaitNodesAgreeOnPrimary: Nodes agreed on primary " + self.nodes[primary].name);
return true;
}, "Awaiting nodes to agree on primary timed out", timeout);
};