HBASE-25680 Non-idempotent test in TestReplicationHFileCleaner (#2984)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
lzx404243 2021-08-13 23:00:52 -04:00 committed by GitHub
parent 11222fc4df
commit 44d5624908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,8 @@ public class TestReplicationHFileCleaner {
} catch (IOException e) { } catch (IOException e) {
LOG.warn("Failed to delete files recursively from path " + root); 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); rp.getPeerStorage().removePeer(peerId);
} }