HBASE-2734. TestFSErrors should catch all types of exceptions, not just RTE
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@955088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
609ce409a0
commit
0af4fd881b
|
@ -390,6 +390,7 @@ Release 0.21.0 - Unreleased
|
|||
same timestamp as current row.
|
||||
HBASE-2733 Replacement of LATEST_TIMESTAMP with real timestamp was broken
|
||||
by HBASE-2353.
|
||||
HBASE-2734 TestFSErrors should catch all types of exceptions, not just RTE
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1760 Cleanup TODOs in HTable
|
||||
|
|
|
@ -176,11 +176,9 @@ public class TestFSErrorsExposed {
|
|||
try {
|
||||
util.countRows(table);
|
||||
fail("Did not fail to count after removing data");
|
||||
} catch (RuntimeException rte) {
|
||||
// We get RTE instead of IOE since java Iterable<?> doesn't throw
|
||||
// IOE
|
||||
LOG.info("Got expected error", rte);
|
||||
assertTrue(rte.getMessage().contains("Could not seek"));
|
||||
} catch (Exception e) {
|
||||
LOG.info("Got expected error", e);
|
||||
assertTrue(e.getMessage().contains("Could not seek"));
|
||||
}
|
||||
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue