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

Improve deletion_info in sstabledump to include calculated 'expires_at' based on local_delete_time + gc_grace_seconds

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Low
    • Resolution: Unresolved
    • None
    • Legacy/Tools
    • None

    Description

      It would be helpful if sstabledump included tombstone expiration time in deletion_info output by calculating local_delete_time + gc_grace_seconds. To do this it would need access to the table schema to get at gc_grace_seconds which is currently not possible until CASSANDRA-9587.

      Example output, assuming gc_grace_seconds is 86400 (10 days):

      { "name" : "data", "deletion_info" : { "marked_deleted" : "2016-07-01T18:00:06.800550Z", "local_delete_time" : "2016-07-01T18:00:06Z", "expires_at": "2016-07-11T18:00:06Z" } }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andrew.tolbert Andy Tolbert
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: