Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.4.13
-
hbase2.4.13
Centos7
-
Reviewed
Description
Reproduction.
1.
Disable snapshot procedure if your hbase support snapshot procedure feature
Set hbase.snapshot.procedure.enabled to false to disable snapshot procedure.
2.
Executing snapshot against a table, this step is no problem
snapshot 't01', 'sn0001'
3.
HBase outputs error logs, as follow.
2024-05-07T23:16:37,175 ERROR [MASTER_SNAPSHOT_OPERATIONS-master/archlinux:16000-0] snapshot.TakeSnapshotHandler: Couldn't delete snapshot working directory:file:/opt/hbase/hbase-4.0.0-alpha-1-SNAPSHOT/tmp/hbase/.hbase-snapshot/.tmp/sn001
The Reason.
HBase would clean tmp of the snapshot after snapshot.
The tmp would be empty if snapshot was executed successfully
We would get false when calling `Filesystem.delete()` to delete the tmp which does not exist, so hbase outputs error logs.
Attachments
Issue Links
- links to