Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-28614

Introduce a field to display whether the snapshot is expired

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      HBase supports to create snapshot with TTL, and expired snapshots will be periodically deleted.

      This period is 30 min by default, as follow.

      private static final String SNAPSHOT_CLEANER_INTERVAL = "hbase.master.cleaner.snapshot.interval";
      private static final int SNAPSHOT_CLEANER_DEFAULT_INTERVAL = 1800 * 1000; // Default 30 min 

       

      Therefore, the following situation may occur: 
      The expired snapshot would still exist for a period of time on hbase cluster, and would not be deleted until the next operation of the periodic thread.
      So, Sometimes, we may use the expired snapshot because we donot know whether the snapshot is expired.

       

      So, I think we can introduce a expired field for this situation in HBase UI.
      And on hbase shell ,adding snapshot TTL info and displaying expired if the snaphost has already expired.

      Or any better suggestions? Thanks a lot!

      Attachments

        Issue Links

          Activity

            People

              guluo guluo
              guluo guluo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: