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

Always printing error log when snapshot table

    XMLWordPrintableJSON

Details

    • 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

          Activity

            People

              guluo guluo
              guluo guluo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: