[SERVER-25113] TTL monitor sleep seconds can be <= 0 Created: 15/Jul/16  Updated: 06/Dec/22  Resolved: 18/Jul/16

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

Type: Bug Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Backlog - Storage Execution Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Operating System: ALL
Steps To Reproduce:

Start mongod with the following parameters:

./mongod --setParameter ttlMonitorSleepSecs=0 --setParameter logLevel=3

It will continuously log messages from TTLMonitor, e.g.:

2016-07-15T13:59:35.390-0400 D INDEX    [TTLMonitor] TTLMonitor thread awake

The same behavior occurs if ttlMonitorSleepSecs is set to a negative integer.

Participants:

 Description   

The TTL monitor thread can be set to run constantly if ttlMonitorSleepSecs is set to 0 or negative.



 Comments   
Comment by Kevin Albertson [ 15/Jul/16 ]

ramon.fernandez You may be right in that the =0 case works as designed, but all I can find in the documentation is that it says that the TTL thread runs every 60 seconds without mentioning the ttlMonitorSleepSecs parameter.

Comment by Ramon Fernandez Marina [ 15/Jul/16 ]

The documentation mentions the use of 0 seconds, so the =0 case is probably works as designed an the bug is only the <0 case.

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