From 44d56249082cab342c1a3682adec895f211b0fe2 Mon Sep 17 00:00:00 2001 From: lzx404243 Date: Fri, 13 Aug 2021 23:00:52 -0400 Subject: [PATCH] HBASE-25680 Non-idempotent test in TestReplicationHFileCleaner (#2984) Signed-off-by: Duo Zhang --- .../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 f44ff284c6d..cc903e8c240 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); }