summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornehakhatri5 <neha.khatri@mongodb.com>2019-02-11 16:03:40 +1100
committernehakhatri5 <neha.khatri@mongodb.com>2019-02-13 14:22:29 +1100
commit6125b5fb078a316854f0299b96b7d16eacb944de (patch)
treee0f040d6d91094b008959757ddbd9a085d2c5f46
parent613454eb99abe25682f9a50d93ee04e7e90ba314 (diff)
downloadmongo-6125b5fb078a316854f0299b96b7d16eacb944de.tar.gz
SERVER-39488 Look for storage stats in the find command's profiled entry.
The find command will always have the storage stats because the test has created a collection with btree spanning multiple pages. Scanning this collection after a server restart will trigger read from the disk and have the disk read stats.
-rw-r--r--jstests/noPassthrough/wt_operation_stats.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/wt_operation_stats.js b/jstests/noPassthrough/wt_operation_stats.js
index bee9fd9eded..cccdcb59547 100644
--- a/jstests/noPassthrough/wt_operation_stats.js
+++ b/jstests/noPassthrough/wt_operation_stats.js
@@ -77,7 +77,8 @@
}
checkLogStats();
- let profileObj = getLatestProfilerEntry(testDB);
+ // Look for the storage statistics in the profiled output of the find command.
+ let profileObj = getLatestProfilerEntry(testDB, {op: "query", ns: "wt_op_stat.foo"});
checkSystemProfileStats(profileObj, "bytesRead");
MongoRunner.stopMongod(conn);