[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:
It will continuously log messages from TTLMonitor, e.g.:
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. |