[SERVER-40416] Log mongot cursor id and time spent blocked waiting for mongot Created: 01/Apr/19  Updated: 29/Oct/23  Resolved: 23/May/19

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

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-40417 Log time spent waiting for mongot Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2019-05-20, Query 2019-06-03
Participants:

 Description   

Log mongot cursor IDs so users can trace operations between mongod and mongot.

The intent here is to give users a way to correlate diagnostic logs by operation between mongod and mongot. Here is an example of what that might look like:

2019-04-01T10:22:32.285-0700 I  COMMAND  [conn9] command foo.bar appName: "MongoDB Shell" command: aggregate { aggregate: "bar", pipeline: [ { $fts: { term: { name: "evan" } } } ], cursor: {}, mongotCursor: { ok: 1, id: 5613672040878147038, fetchMs: 55 } ... $db: "foo" } numYields:0 ok:1 ... protocol:op_msg 112ms



 Comments   
Comment by Githook User [ 23/May/19 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-40416 Add logging to document_source_internal_search_beta_mongot_remote
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/fe2fecf4012f9f0320bd90a0cd18ea3cba88a504

Comment by Githook User [ 23/May/19 ]

Author:

{'email': 'ted.tuckman@mongodb.com', 'name': 'Ted Tuckman', 'username': 'TedTuckman'}

Message: SERVER-40416 Add logging to fts document source
Branch: master
https://github.com/mongodb/mongo/commit/a8b1c9040a3f91e8d396f047547d298fb44d7df0

Comment by David Storch [ 22/May/19 ]

kelsey.schubert your suggestion LGTM as well, thanks for the input!

Comment by David Storch [ 22/May/19 ]

bruce.lucas, as I commented in SERVER-40417, the two tickets got merged into one. Please use this ticket for all further discussion. I've closed SERVER-40417, as it won't have any commits against it.

Comment by Bruce Lucas (Inactive) [ 22/May/19 ]

How does this relate to SERVER-40417, which seems to be discussing the same thing?

Generated at Thu Feb 08 04:54:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.