From 58c20f3c76f7a73a355e36e5c0791d6c3522565b Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 10 Apr 2014 04:44:57 +0000 Subject: [PATCH] HBASE-10954 Fix TestCloseRegionHandler.testFailedFlushAborts (Mikhail Antonov) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1586213 13f79535-47bb-0310-9956-ffa450edef68 --- .../hbase/regionserver/handler/TestCloseRegionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/handler/TestCloseRegionHandler.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/handler/TestCloseRegionHandler.java index f864ec5412f..a86ff096a97 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/handler/TestCloseRegionHandler.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/handler/TestCloseRegionHandler.java @@ -104,7 +104,7 @@ public class TestCloseRegionHandler { HRegion spy = Mockito.spy(region); final boolean abort = false; Mockito.when(spy.close(abort)). - thenThrow(new RuntimeException("Mocked failed close!")); + thenThrow(new IOException("Mocked failed close!")); // The CloseRegionHandler will try to get an HRegion that corresponds // to the passed hri -- so insert the region into the online region Set. rss.addToOnlineRegions(spy);