-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.7.6
-
Component/s: Querying
-
None
-
Fully Compatible
-
ALL
Regression since 2.7.5; affects 2.7.6 and master.
The metrics "document.returned" from serverStatus().metrics no longer gets updated properly.
Reproduce with:
// Test "document.returned" when query returns documents.
db.foo.drop();
db.foo.insert({});
db.foo.insert({});
db.foo.insert({});
oldMetrics = db.serverStatus().metrics;
db.foo.find().itcount();
newMetrics = db.serverStatus().metrics;
assert.eq(newMetrics.document.returned, oldMetrics.document.returned + 3);
- is related to
-
SERVER-14964 nscanned not written to the logs at logLevel 1 unless slowms exceeded or profiling enabled
- Closed
-
SERVER-17862 Unify stats reporting for log/profiler across CRUD operations
- Closed
- related to
-
SERVER-15238 Add jstests for serverStatus().metrics
- Backlog