[SERVER-52663] Fix the lifetime of ScopedMetricsCollector in ExecCommandDatabase Created: 06/Nov/20  Updated: 29/Oct/23  Resolved: 06/Nov/20

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

Type: Bug Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Amirsaman Memaripour
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-49107 Add async command API Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service arch 2020-11-16
Participants:
Linked BF Score: 43

 Description   

The instance of ScopedMetricsCollector (defined here) should not go out-of-scope so long as ExecCommandDatabase's future-chain (define here) is not executed. This would ensure that the metrics collector remains in scope long enough to collect its desired metrics.



 Comments   
Comment by Githook User [ 06/Nov/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-52663 Fix the lifetime of ScopedMetricsCollector in ExecCommandDatabase
Branch: master
https://github.com/mongodb/mongo/commit/24563e120caf4e8eed2e4fb643e8ffa98a8f207e

Generated at Thu Feb 08 05:28:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.