summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Kaye <tyler.kaye@mongodb.com>2017-06-19 14:00:25 -0400
committerTyler Kaye <tkaye@princeton.edu>2017-06-20 14:19:57 -0400
commitf810e9a849cc98254a28e2f7c704785f2c8e0e6b (patch)
tree9c4a3758acadaa1f93815d330009456dd41988f6
parentda2e51bd03fd4e6a519eb170e301af36c8b8e420 (diff)
downloadmongo-f810e9a849cc98254a28e2f7c704785f2c8e0e6b.tar.gz
SERVER-29638 Changed the Error Message when failing to reach a sharded cluster.
-rw-r--r--src/mongo/client/replica_set_monitor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/client/replica_set_monitor.cpp b/src/mongo/client/replica_set_monitor.cpp
index 9b762f07708..ee4dbe0657b 100644
--- a/src/mongo/client/replica_set_monitor.cpp
+++ b/src/mongo/client/replica_set_monitor.cpp
@@ -499,7 +499,7 @@ Refresher::NextStep Refresher::getNextStep() {
if (_scan->hostsToScan.empty()) {
// We've tried all hosts we can, so nothing more to do in this round.
if (!_scan->foundUpMaster) {
- warning() << "No primary detected for set " << _set->name;
+ warning() << "Unable to reach primary for set " << _set->name;
// Since we've talked to everyone we could but still didn't find a primary, we
// do the best we can, and assume all unconfirmedReplies are actually from nodes
@@ -532,7 +532,8 @@ Refresher::NextStep Refresher::getNextStep() {
} else {
auto nScans = _set->consecutiveFailedScans++;
if (nScans <= 10 || nScans % 10 == 0) {
- log() << "All nodes for set " << _set->name << " are down. "
+ log() << "Cannot reach any nodes for set " << _set->name
+ << ". Please check network connectivity and the status of the set. "
<< "This has happened for " << _set->consecutiveFailedScans
<< " checks in a row.";
}