diff options
author | Randolph Tan <randolph@10gen.com> | 2013-06-25 17:13:33 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2013-06-25 17:13:33 -0400 |
commit | fc8538ac9231a104d5858b25d24d6ca688c385ea (patch) | |
tree | 603c4eea40e39bc595b2c3ce060df4d6a05d66e3 /src/mongo/dbtests | |
parent | ace643f0afb1e4637587abf3faa05edd6f2fc123 (diff) | |
download | mongo-fc8538ac9231a104d5858b25d24d6ca688c385ea.tar.gz |
SERVER-10006 Secondary read pref with tag can end up selecting no nodes on retry
Added more descriptive comments for the tests.
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/replica_set_monitor_test.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/dbtests/replica_set_monitor_test.cpp b/src/mongo/dbtests/replica_set_monitor_test.cpp index 77eed10e7ff..59d801487ba 100644 --- a/src/mongo/dbtests/replica_set_monitor_test.cpp +++ b/src/mongo/dbtests/replica_set_monitor_test.cpp @@ -1680,7 +1680,9 @@ namespace mongo_test { boost::scoped_ptr<MockReplicaSet> _replSet; }; - // Tests the node selection retry logic when the connection went bad. + // Tests the case where the connection to secondary went bad and the replica set + // monitor needs to perform a refresh of it's local view then retry the node selection + // again after the refresh. TEST_F(TwoNodeWithTags, SecDownRetryNoTag) { MockReplicaSet* replSet = getReplSet(); @@ -1705,7 +1707,9 @@ namespace mongo_test { ASSERT_EQUALS(secHost, node.toString(true)); } - // Tests the node selection retry logic with tags when the connection went bad. + // Tests the case where the connection to secondary went bad and the replica set + // monitor needs to perform a refresh of it's local view then retry the node selection + // with tags again after the refresh. TEST_F(TwoNodeWithTags, SecDownRetryWithTag) { MockReplicaSet* replSet = getReplSet(); |