summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2020-01-17 12:35:21 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-01-17 21:29:47 +0000
commit91d9714e6ddd83f6a215c7a159b15dacc68a8701 (patch)
tree319aaba1c9eb52d99b5f0188244e7dbc9bfd7126
parentd436c1ef262ac8caa9d59406448d41e426134533 (diff)
downloadmongo-91d9714e6ddd83f6a215c7a159b15dacc68a8701.tar.gz
SERVER-45635: Log currentOp if the test fails for exhaust_cursor_currentop_integration_test
-rw-r--r--src/mongo/db/exhaust_cursor_currentop_integration_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/exhaust_cursor_currentop_integration_test.cpp b/src/mongo/db/exhaust_cursor_currentop_integration_test.cpp
index e8fff744558..e308109b5c6 100644
--- a/src/mongo/db/exhaust_cursor_currentop_integration_test.cpp
+++ b/src/mongo/db/exhaust_cursor_currentop_integration_test.cpp
@@ -113,6 +113,10 @@ bool confirmCurrentOpContents(DBClientBase* conn,
}
sleepFor(intervalMS);
}
+ auto currentOp = BSON("currentOp" << BSON("idleCursors" << true));
+ unittest::log()
+ << "confirmCurrentOpContents fails with curOpMatch: " << curOpMatch << " currentOp: "
+ << conn->runCommand(OpMsgRequest::fromDBAndBody("admin", currentOp))->getCommandReply();
return false;
}