You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2021/08/14 03:25:51 UTC

[hbase] branch branch-2.3 updated: HBASE-25680 Non-idempotent test in TestReplicationHFileCleaner (#2984)

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.3 by this push:
     new b34d0cd  HBASE-25680  Non-idempotent test in TestReplicationHFileCleaner (#2984)
b34d0cd is described below

commit b34d0cdc0bc2e4436ca9bb6928a395e4d07a81ea
Author: lzx404243 <lz...@hotmail.com>
AuthorDate: Fri Aug 13 23:00:52 2021 -0400

    HBASE-25680  Non-idempotent test in TestReplicationHFileCleaner (#2984)
    
    Signed-off-by: Duo Zhang <zh...@apache.org>
---
 .../apache/hadoop/hbase/master/cleaner/TestReplicationHFileCleaner.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/cleaner/TestReplicationHFileCleaner.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/cleaner/TestReplicationHFileCleaner.java
index db5c7b2..fa36bfd 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/cleaner/TestReplicationHFileCleaner.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/cleaner/TestReplicationHFileCleaner.java
@@ -119,6 +119,8 @@ public class TestReplicationHFileCleaner {
     } catch (IOException e) {
       LOG.warn("Failed to delete files recursively from path " + root);
     }
+    // Remove all HFileRefs (if any)
+    rq.removeHFileRefs(peerId, rq.getReplicableHFiles(peerId));
     rp.getPeerStorage().removePeer(peerId);
   }