summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_rollback_test.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-10-18 09:40:25 -0400
committerJudah Schvimer <judah@mongodb.com>2017-10-18 09:40:25 -0400
commit0b23e5ab80c96a8c5b001a1a33c5d6099c48ef2b (patch)
treeb0a0ecf176f1b161539dd9c36065648a90dab8e4 /src/mongo/db/repl/rs_rollback_test.cpp
parentc3f581ee05ca1252aa2f42bbf16a913f9f819e1d (diff)
downloadmongo-0b23e5ab80c96a8c5b001a1a33c5d6099c48ef2b.tar.gz
SERVER-31062 Added log messages before we do operations in rollback
Diffstat (limited to 'src/mongo/db/repl/rs_rollback_test.cpp')
-rw-r--r--src/mongo/db/repl/rs_rollback_test.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/mongo/db/repl/rs_rollback_test.cpp b/src/mongo/db/repl/rs_rollback_test.cpp
index b7d5b9abcf0..b916ad93fdb 100644
--- a/src/mongo/db/repl/rs_rollback_test.cpp
+++ b/src/mongo/db/repl/rs_rollback_test.cpp
@@ -563,8 +563,11 @@ TEST_F(RSRollbackTest, RollbackCreateIndexCommand) {
_coordinator,
_replicationProcess.get()));
stopCapturingLogMessages();
- ASSERT_EQUALS(
- 1, countLogLinesContaining("Dropped index in rollback: collection = test.t, index = a_1"));
+ ASSERT_EQUALS(1,
+ countLogLinesContaining(
+ str::stream() << "Dropped index in rollback for collection: test.t, UUID: "
+ << options.uuid->toString()
+ << ", index: a_1"));
{
Lock::DBLock dbLock(_opCtx.get(), "test", MODE_S);
auto indexCatalog = collection->getIndexCatalog();
@@ -779,10 +782,16 @@ TEST_F(RSRollbackTest, RollingBackDropAndCreateOfSameIndexNameWithDifferentSpecs
ASSERT_EQUALS(2, indexCatalog->numIndexesReady(_opCtx.get()));
ASSERT_EQUALS(
1,
- countLogLinesContaining("Dropped index in rollback: collection = test.t, index = a_1"));
+ countLogLinesContaining(str::stream()
+ << "Dropped index in rollback for collection: test.t, UUID: "
+ << options.uuid->toString()
+ << ", index: a_1"));
ASSERT_EQUALS(
1,
- countLogLinesContaining("Created index in rollback: collection = test.t, index = a_1"));
+ countLogLinesContaining(str::stream()
+ << "Created index in rollback for collection: test.t, UUID: "
+ << options.uuid->toString()
+ << ", index: a_1"));
std::vector<IndexDescriptor*> indexes;
indexCatalog->findIndexesByKeyPattern(_opCtx.get(), BSON("a" << 1), false, &indexes);
ASSERT(indexes.size() == 1);