[SERVER-52724] Increment TTL passes server status metric after the TTL work has finished Created: 09/Nov/20  Updated: 29/Oct/23  Resolved: 10/Nov/20

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

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-11-16
Participants:
Linked BF Score: 13

 Description   

The TTL passes server status metric gets incremented before the TTL work was done here. This is problematic for tests that depend on documents to be deleted after the metric has been incremented such as this test. Instead, it would be better to increment the metric after the TTL work has been performed, making testing more reliable.



 Comments   
Comment by Githook User [ 29/Mar/22 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-52724 'ttl_monitor_does_not_unregister_index_during_collection_creation.js' waits for two TTL passes as opposed to one

(cherry picked from commit 145a48bf2fdddbc44fdea4ab9c0a5475ed1bb1b7)
Branch: v4.4
https://github.com/mongodb/mongo/commit/528c46af923499ea0104b54736c4eff4921ab6ba

Comment by Githook User [ 10/Nov/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-52724 'ttl_monitor_does_not_unregister_index_during_collection_creation.js' waits for two TTL passes as opposed to one
Branch: master
https://github.com/mongodb/mongo/commit/145a48bf2fdddbc44fdea4ab9c0a5475ed1bb1b7

Comment by Githook User [ 10/Nov/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-52724 Increment TTL passes server status metric after the TTL work has finished
Branch: master
https://github.com/mongodb/mongo/commit/1761282aff97de315fe1f232c780e0a9fb998799

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