You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yifan Cai (Jira)" <ji...@apache.org> on 2020/09/30 00:06:00 UTC

[jira] [Created] (CASSANDRA-16149) Record the expiration time for hints files to avoid loading expired ones

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-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org