Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-16149

Record the expiration time for hints files to avoid loading expired ones

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Triage Needed
    • Normal
    • Resolution: Unresolved
    • None
    • Local/Other
    • None
    • All
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yifanc Yifan Cai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: