[
https://issues.apache.org/jira/browse/HBASE-13885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lars Hofhansl updated HBASE-13885:
----------------------------------
Attachment: 13885-0.98-v3.txt
This one does work.
The idea is to always create the abort and acquired znodes. The patch does that
at the time we're ready to clear the existing znodes. It simply creates them if
they don't exist, before deleting them.
The watches then simply ignore an empty data znode.
Please have a look.
> ZK watches leaks during snapshots
> ---------------------------------
>
> Key: HBASE-13885
> URL: https://issues.apache.org/jira/browse/HBASE-13885
> Project: HBase
> Issue Type: Bug
> Components: snapshots
> Affects Versions: 0.98.12
> Reporter: Abhishek Singh Chouhan
> Priority: Critical
> Attachments: 13885-0.98-v2.txt, 13885-0.98-v3.txt
>
>
> When taking snapshot of a table a watcher over
> /hbase/online-snapshot/abort/snapshot-name is created which is never cleared
> when the snapshot is successful. If we use snapshots to take backups daily we
> accumulate a lot of watches.
> Steps to reproduce -
> 1) Take snapshot of a table - snapshot 'table_1', 'abc'
> 2) Run the following on zk node or alternatively observe zk watches metric
> echo "wchc" | nc localhost 2181
> /hbase/online-snapshot/abort/abc can be found.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)