[DOCS-8071] Addition of 'originatingCommand' to getMore log messages & profiler entries Created: 08/Jun/16  Updated: 30/Oct/23  Resolved: 25/Oct/17

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: James Wahlin Assignee: Kevin Albertson
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DOCS-10060 Docs for SERVER-27439: Large queries ... Closed
Documented
documents SERVER-23260 Report original query with getMore in... Closed
Duplicate
Related
Participants:
Days since reply: 7 years, 36 weeks ago

 Description   

For MongoDB 3.4

Under SERVER-23260 we have added an "originatingCommand' field to getMore diagnostics. This field appears in slow diagnostic logging, the profiled getMore entries and in db.currentOP(). Please add definitions to our documentation for this field where appropriate.

A rough definition for this field is: 'The command object that generated the cursor this getMore is executing against'.

Sample log output:

command profile_getmore.test command: getMore { getMore: 35432647810, collection: "test", batchSize: 2.0 } originatingCommand: { find: "test", filter: { a: { $gt: 0.0 } }, batchSize: 2.0, sort: { a: 1.0 } } cursorid:35432647810

Sample profiler output:

 { "op" : "getmore", "ns" : "profile_getmore.test", "query" : { "getMore" : NumberLong("46013230076"), "collection" : "test", "batchSize" : 2 }, "originatingCommand" : { "find" : "test", "filter" : { "a" : { "$gt" : 0 } }, "batchSize" : 2, "sort" : { "a" : 1 } }, "cursorid" : 46013230076}

A quick search for relevant pages brings me to the following:

  1. https://docs.mongodb.com/manual/reference/database-profiler/
  2. https://docs.mongodb.com/manual/reference/method/db.currentOp/#output-fields

Generated at Thu Feb 08 07:55:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.