guluo created HBASE-28575:
-----------------------------

             Summary: Always printing error log when snapshot table 
                 Key: HBASE-28575
                 URL: https://issues.apache.org/jira/browse/HBASE-28575
             Project: HBase
          Issue Type: Bug
          Components: snapshots
    Affects Versions: 2.4.13
         Environment: hbase2.4.13

Centos7
            Reporter: guluo
            Assignee: guluo


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to