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

Stop/Resume Snapshot Auto-Cleanup activity with shell command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 1.5.0, 2.3.0
    • 3.0.0-alpha-1, 1.5.0, 2.3.0
    • Admin, shell, snapshots
    • None
    • Hide
      By default, snapshot auto cleanup based on TTL would be enabled for any new cluster. At any point in time, if snapshot cleanup is supposed to be stopped due to some snapshot restore activity or any other reason, it is advisable to disable it using shell command:
      hbase> snapshot_cleanup_switch false

      We can re-enable it using:
      hbase> snapshot_cleanup_switch true

      We can query whether snapshot auto cleanup is enabled for cluster using:
      hbase> snapshot_cleanup_enabled

      Show
      By default, snapshot auto cleanup based on TTL would be enabled for any new cluster. At any point in time, if snapshot cleanup is supposed to be stopped due to some snapshot restore activity or any other reason, it is advisable to disable it using shell command: hbase> snapshot_cleanup_switch false We can re-enable it using: hbase> snapshot_cleanup_switch true We can query whether snapshot auto cleanup is enabled for cluster using: hbase> snapshot_cleanup_enabled

    Description

      For any scheduled snapshot backup activity, we would like to disable auto-cleaner for snapshot based on TTL. However, as per HBASE-22648 we have a config to disable snapshot auto-cleaner: hbase.master.cleaner.snapshot.disable, which would take effect only upon HMaster restart just similar to any other hbase-site configs.

      For any running cluster, we should be able to stop/resume auto-cleanup activity for snapshot based on shell command. Something similar to below command should be able to stop/start cleanup chore:

      hbase(main):001:0> snapshot_auto_cleanup_switch false    (disable auto-cleaner)

      hbase(main):001:0> snapshot_auto_cleanup_switch true     (enable auto-cleaner)

      Attachments

        1. HBASE-22760.branch-1.000.patch
          175 kB
          Viraj Jasani
        2. HBASE-22760.branch-1.001.patch
          174 kB
          Viraj Jasani
        3. HBASE-22760.branch-2.000.patch
          61 kB
          Viraj Jasani
        4. HBASE-22760.master.003.patch
          62 kB
          Viraj Jasani
        5. HBASE-22760.master.004.patch
          62 kB
          Viraj Jasani
        6. HBASE-22760.master.005.patch
          62 kB
          Viraj Jasani
        7. HBASE-22760.master.008.patch
          57 kB
          Viraj Jasani
        8. HBASE-22760.master.009.patch
          54 kB
          Viraj Jasani

        Activity

          People

            vjasani Viraj Jasani
            vjasani Viraj Jasani
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: