[SERVER-14964] nscanned not written to the logs at logLevel 1 unless slowms exceeded or profiling enabled Created: 19/Aug/14  Updated: 11/Mar/15  Resolved: 08/Sep/14

Status: Closed
Project: Core Server
Component/s: Logging, Querying
Affects Version/s: 2.6.4
Fix Version/s: 2.6.5, 2.7.7

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File nscanned_vs_not.png    
Issue Links:
Related
related to SERVER-15239 serverStatus metrics incorrect: "oper... Closed
related to SERVER-15240 serverStatus metric "document.returne... Closed
Operating System: ALL
Backport Completed:
Participants:

 Description   

I'm not sure what the common element here is but I see lots of queries output to the logs without nscanned (or nscannedObjects).

2014-08-14T20:38:44.165+0000 [conn5704] query appdata.Activity query: { $or: [ { _acl: { $exists: false } }, { _acl.a.r: true }, { _acl.b.r: true } ], _id: "" } planSummary: IXSCAN { _id: 1 } ntoskip:0 keyUpdates:0 numYields:0 locks(micros) r:552 nreturned:0 reslen:20 0ms



 Comments   
Comment by Githook User [ 22/Sep/14 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-14964 collect debug stats for find and update if log level is greater than zero
Branch: v2.6
https://github.com/mongodb/mongo/commit/e0fd81f00395ae2fde5c4e5f170590913d98cbf0

Comment by Githook User [ 08/Sep/14 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-14964 always collect debug stats if the query log component verbosity is greater than zero
Branch: master
https://github.com/mongodb/mongo/commit/de8ad641914eeb56367d06fd465c17ad5e6a3e26

Generated at Thu Feb 08 03:36:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.