diff options
author | Tyler Kaye <tyler.kaye@mongodb.com> | 2017-06-19 14:00:25 -0400 |
---|---|---|
committer | Tyler Kaye <tkaye@princeton.edu> | 2017-06-20 14:19:57 -0400 |
commit | f810e9a849cc98254a28e2f7c704785f2c8e0e6b (patch) | |
tree | 9c4a3758acadaa1f93815d330009456dd41988f6 | |
parent | da2e51bd03fd4e6a519eb170e301af36c8b8e420 (diff) | |
download | mongo-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.cpp | 5 |
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."; } |