summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2020-01-17 12:35:21 -0500
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2020-01-27 15:40:40 -0500
commit820333876be13fcb0ed64727d1c16b27c3eff15a (patch)
tree9a50c0d548cf119a3f291390a594ad65ebdbad02
parent08ee09d1c1cee70ac4e92082cd65787bdef66a13 (diff)
downloadmongo-820333876be13fcb0ed64727d1c16b27c3eff15a.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;
}