summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaustoleyva54 <fausto.leyva@mongodb.com>2021-09-13 21:04:54 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-30 21:19:07 +0000
commit31fef3c18f6fd8278b306cc9d8bc5ef93e8d2e7e (patch)
tree645fb584c676dbbd569e93096dacf84118d81a31
parent0f21876dd7eeff54c8e07f788a2414aec2de3ea9 (diff)
downloadmongo-31fef3c18f6fd8278b306cc9d8bc5ef93e8d2e7e.tar.gz
SERVER-56801 Add DOCS link for reconfiguring PSA set upon failure.
(cherry picked from commit 228c642d3ccd57b3fb1f73fb656e26767e44ff6d)
-rw-r--r--src/mongo/db/repl/repl_set_config_checks.cpp5
-rw-r--r--src/mongo/shell/utils.js3
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/repl/repl_set_config_checks.cpp b/src/mongo/db/repl/repl_set_config_checks.cpp
index d5a2e2d7364..9888ff5d556 100644
--- a/src/mongo/db/repl/repl_set_config_checks.cpp
+++ b/src/mongo/db/repl/repl_set_config_checks.cpp
@@ -297,10 +297,11 @@ Status validateOldAndNewConfigsCompatible(const ReplSetConfig& oldConfig,
numElectableNodesNewConfig > 1) {
return Status(
ErrorCodes::NewReplicaSetConfigurationIncompatible,
- // TODO (SERVER-56801): Add placeholder link.
str::stream()
<< "Rejecting reconfig where the new config has a PSA topology and the secondary "
- "is electable, but the old config contains only one writable node");
+ << "is electable, but the old config contains only one writable node. Refer to "
+ << "https://docs.mongodb.com/manual/reference/method/rs.reconfigForPSASet/"
+ << " for next steps on reconfiguring a PSA set.");
}
return Status::OK();
diff --git a/src/mongo/shell/utils.js b/src/mongo/shell/utils.js
index 4f75c8d3c04..4cd669c243f 100644
--- a/src/mongo/shell/utils.js
+++ b/src/mongo/shell/utils.js
@@ -1458,10 +1458,11 @@ rs.help = function() {
"\trs.reconfigForPSASet(memberIndex, cfg, opts) updates the configuration of a Primary-Secondary-Arbiter (PSA) replica set while preserving majority writes");
print(
"\t memberIndex: index of the node being updated; cfg: the desired new config; opts: options passed in with the reconfig");
- // TODO (SERVER-56801): Add placeholder link.
print(
"\t Not to be used with every configuration");
print(
+ "\t For more information, visit: https://docs.mongodb.com/manual/reference/method/rs.reconfigForPSASet/");
+ print(
"\trs.add(hostportstr) add a new member to the set with default attributes (disconnects)");
print(
"\trs.add(membercfgobj) add a new member to the set with extra attributes (disconnects)");