[SERVER-5830] Show original queries in currentOp or database profiler Created: 11/May/12  Updated: 06/Dec/22  Resolved: 09/May/16

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Mark Assignee: Backlog - Query Team (Inactive)
Resolution: Duplicate Votes: 1
Labels: query_triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

any


Issue Links:
Duplicate
duplicates SERVER-23260 Report original query with getMore in... Closed
Related
related to SERVER-17862 Unify stats reporting for log/profile... Closed
Assigned Teams:
Query
Participants:

 Description   

Some queries show up as "getmore" in currentOp or the database profile logs. I believe the slow logs might contain the original query with the cursor id, but even then, the original could be removed from the capped collection.

It would be nice if currentOp and the database profiler would keep a copy of the query as a comment somehow.

The issue is, make it easy to know what is going on in detail with currentOp or the logs so an amateur can figure out easily what is happening to mongod.



 Comments   
Comment by David Storch [ 09/May/16 ]

Closing as a duplicate of SERVER-23260, which is currently in progress and targeted for release with MongoDB version 3.4.

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