Yifan Cai created CASSANDRA-16149:
-------------------------------------

             Summary: Record the expiration time for hints files to avoid 
loading expired ones
                 Key: CASSANDRA-16149
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16149
             Project: Cassandra
          Issue Type: Improvement
          Components: Local/Other
            Reporter: Yifan Cai


The expiration time of a hints file is considered to be the latest expiration 
time among all the hints in the file. If the current time exceeds the file 
expiration time, the file can be safely deleted. 

The expiration time can be determined when finishing writing to the hints file. 

The tricky part is that each hints file keeps the metadata at the header of the 
file, but the expiration time is only known at the end. So we may want to save 
the metadata in a companion file of the hints. This approach is also 
future-proof, in that case that we want to add more metadata. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to