You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2019/08/15 20:18:45 UTC

[hbase] branch branch-2.2 updated: HBASE-22857 Fix the failed ut TestHRegion and TestHRegionWithInMemoryFlush (#495)

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

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


The following commit(s) were added to refs/heads/branch-2.2 by this push:
     new bfdbaf7  HBASE-22857 Fix the failed ut TestHRegion and TestHRegionWithInMemoryFlush (#495)
bfdbaf7 is described below

commit bfdbaf7db2689467d0e4c59064c56b4b94a3d9fc
Author: Guanghao Zhang <zg...@apache.org>
AuthorDate: Thu Aug 15 15:18:38 2019 -0500

    HBASE-22857 Fix the failed ut TestHRegion and TestHRegionWithInMemoryFlush (#495)
    
    Signed-off-by: Peter Somogyi psomogyi@apache.org
    Signed-off-by: stack stack@apache.org
---
 .../java/org/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 7cb09a6..bfee310 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 class TestHRegion {
       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