HBASE-10954 Fix TestCloseRegionHandler.testFailedFlushAborts (Mikhail Antonov)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1586213 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8bcb70ddcf
commit
58c20f3c76
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue