Skip to content

Commit

Permalink
HBASE-22857 Fix the failed ut TestHRegion and TestHRegionWithInMemory…
Browse files Browse the repository at this point in the history
…Flush (#495)

Signed-off-by: Peter Somogyi [email protected]
Signed-off-by: stack [email protected]
  • Loading branch information
infraio authored and saintstack committed Aug 19, 2019
1 parent 46abaef commit 0b3db50
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,14 +1230,7 @@ public long getLength() {
region.close(true);
wal.close();

// 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);
wal.init();
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
Expand Down

0 comments on commit 0b3db50

Please sign in to comment.