HBASE-10751 TestHRegion testWritesWhileScanning occasional fail since HBASE-10514 went in

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1577664 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2014-03-14 19:16:44 +00:00
parent 7f35dcd74a
commit e97a4df4e0
1 changed files with 8 additions and 1 deletions

View File

@ -3180,7 +3180,14 @@ public class TestHRegion {
flushThread.join();
flushThread.checkNoError();
} finally {
HRegion.closeHRegion(this.region);
try {
HRegion.closeHRegion(this.region);
} catch (DroppedSnapshotException dse) {
// We could get this on way out because we interrupt the background flusher and it could
// fail anywhere causing a DSE over in the background flusher... only it is not properly
// dealt with so could still be memory hanging out when we get to here -- memory we can't
// flush because the accounting is 'off' since original DSE.
}
this.region = null;
}
}