[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: |
|
||||||||||||
| 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: |