[SERVER-52859] TTL deleter should only start recording metrics when running as primary Created: 13/Nov/20  Updated: 29/Oct/23  Resolved: 16/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: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-11-30
Participants:
Linked BF Score: 26

 Description   

Do not start collecting metrics until we know we are primary after here.

This is not necessarily a bug, but collecting cpuTime for no-op runs makes it harder to test.



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

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-52859 Only start collecting TTL metrics when we know the node is primary
Branch: master
https://github.com/mongodb/mongo/commit/c87fcc64bead3fad53f63f434d4a2c14219e58bd

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