Details
-
Sub-task
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
Description
Add new parameter --ttl to nodetool snapshot command. This parameter can be specified in human readable duration (ie. 30mins, 1h, 300d) and should not be lower than 1 minute.
The expiration date should be added to the snapshot manifest in ISO format.
A periodic thread should efficiently scan snapshots and automatically clear those past expiration date. The periodicity of the scan thread should be 1 minute by default but be overridable via a system property.
The command nodetool listsnapshots should display the expiration date when the snapshot contains a TTL.