[SERVER-33499] Consolidate CurOp initialization Created: 26/Feb/18  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Bernard Gorman Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-33429 add database versioning test cases fo... Closed
Duplicate
is duplicated by SERVER-33268 Put description of command request in... Closed
Related
related to SERVER-34830 currentOp of replicated createIndexes... Closed
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Sprint: Query 2018-03-12
Participants:

 Description   
  • Start CurOp timer on construction.
  • Consolidate piecemeal initialization so that CurOp metrics are updated at the minimum possible number of callsites and with the minimal possible public interface.
  • Consolidate logging/profiling logic into CurOp.


 Comments   
Comment by Andy Schwerin [ 27/Feb/18 ]

I believe we already start the timer almost immediately.

Comment by Eric Milkie [ 26/Feb/18 ]

Note that by changing where we start the timer, it will change operation statistics, which will make comparisons with previous MongoDB versions misleading.

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