[ 
https://issues.apache.org/jira/browse/HBASE-22760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Viraj Jasani updated HBASE-22760:
---------------------------------
    Release Note: 
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



  was:
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



> Stop/Resume Snapshot Auto-Cleanup activity with shell command
> -------------------------------------------------------------
>
>                 Key: HBASE-22760
>                 URL: https://issues.apache.org/jira/browse/HBASE-22760
>             Project: HBase
>          Issue Type: Improvement
>          Components: Admin, shell, snapshots
>    Affects Versions: 3.0.0, 1.5.0, 2.3.0
>            Reporter: Viraj Jasani
>            Assignee: Viraj Jasani
>            Priority: Major
>             Fix For: 3.0.0, 1.5.0, 2.3.0
>
>         Attachments: HBASE-22760.branch-1.000.patch, 
> HBASE-22760.branch-1.001.patch, HBASE-22760.branch-2.000.patch, 
> HBASE-22760.master.003.patch, HBASE-22760.master.004.patch, 
> HBASE-22760.master.005.patch, HBASE-22760.master.008.patch, 
> HBASE-22760.master.009.patch
>
>
> 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)



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to