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

unnecessary ERROR log in RS even the snapshot is completed successfully.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0, 2.2.0, 1.4.9
    • Fix Version/s: None
    • Component/s: snapshots
    • Labels:
      None

      Description

      2019-06-02 20:04:36,702 INFO  [MASTER_TABLE_OPERATIONS-master/10.0.0.198:16000-0] snapshot.EnabledTableSnapshotHandler: Done waiting - online snapshot for t1_V
      2019-06-02 20:04:36,803 INFO  [MASTER_TABLE_OPERATIONS-master/10.0.0.198:16000-0] snapshot.TakeSnapshotHandler: Snapshot t1_V of table t1 completed
      2019-06-02 20:04:36,803 ERROR [MASTER_TABLE_OPERATIONS-master/10.0.0.198:16000-0] snapshot.TakeSnapshotHandler: Couldn't delete snapshot working directory:file:/var/folders/1d/j2qwtjr141z69nc86syq8xb80000gn/T/hbase-asinghal/hbase/.hbase-snapshot/.tmp/t1_V
      2019-06-02 20:04:36,804 INFO  [PEWorker-9] procedure2.ProcedureExecutor: Finished pid=11, state=SUCCESS; org.apache.hadoop.hbase.master.locking.LockProcedure, tableName=t1, type=SHARED in 213msec
      

      We should be checking if the directory is present or not before deleting it.
      https://github.com/apache/hbase/blame/branch-2.2/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/TakeSnapshotHandler.java#L246

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ankit@apache.org Ankit Singhal
                Reporter:
                ankit@apache.org Ankit Singhal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: