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:
Todd Lipcon 2010-06-15 23:35:15 +00:00
parent 609ce409a0
commit 0af4fd881b
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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 {