diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2020-01-17 12:35:21 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-01-17 21:29:47 +0000 |
commit | 91d9714e6ddd83f6a215c7a159b15dacc68a8701 (patch) | |
tree | 319aaba1c9eb52d99b5f0188244e7dbc9bfd7126 | |
parent | d436c1ef262ac8caa9d59406448d41e426134533 (diff) | |
download | mongo-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.cpp | 4 |
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; } |