From 4964a908646a9717b9a228a4a447b22ab80393e0 Mon Sep 17 00:00:00 2001 From: Guanghao Zhang Date: Thu, 15 Aug 2019 10:33:44 +0800 Subject: [PATCH] HBASE-22857 Fix the failed ut TestHRegion and TestHRegionWithInMemoryFlush --- .../apache/hadoop/hbase/regionserver/TestHRegion.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java index 7cb09a6ab357..bfee310cd5e1 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java @@ -1241,15 +1241,6 @@ public long getLength() { HConstants.EMPTY_END_ROW, false, Durability.USE_DEFAULT, wal, family); region.put(put); - // 2. Test case where START_FLUSH succeeds but COMMIT_FLUSH will throw exception - wal.flushActions = new FlushAction [] {FlushAction.COMMIT_FLUSH}; - wal = new FailAppendFlushMarkerWAL(FileSystem.get(walConf), FSUtils.getRootDir(walConf), - method, walConf); - - this.region = initHRegion(tableName, HConstants.EMPTY_START_ROW, - HConstants.EMPTY_END_ROW, false, Durability.USE_DEFAULT, wal, family); - region.put(put); - // 3. Test case where ABORT_FLUSH will throw exception. // Even if ABORT_FLUSH throws exception, we should not fail with IOE, but continue with // DroppedSnapshotException. Below COMMMIT_FLUSH will cause flush to abort