HBASE-12152 TestLoadIncrementalHFiles shows up as zombie test; ADD TIMEOUT ON TESTS

This commit is contained in:
stack 2014-10-02 09:58:03 -07:00
parent 0dfe556f31
commit 4598628ef2
1 changed files with 5 additions and 5 deletions

View File

@ -259,7 +259,7 @@ public class TestLoadIncrementalHFilesSplitRecovery {
* Test that shows that exception thrown from the RS side will result in an * Test that shows that exception thrown from the RS side will result in an
* exception on the LIHFile client. * exception on the LIHFile client.
*/ */
@Test(expected=IOException.class) @Test(expected=IOException.class, timeout=120)
public void testBulkLoadPhaseFailure() throws Exception { public void testBulkLoadPhaseFailure() throws Exception {
TableName table = TableName.valueOf("bulkLoadPhaseFailure"); TableName table = TableName.valueOf("bulkLoadPhaseFailure");
setupTable(table, 10); setupTable(table, 10);
@ -331,7 +331,7 @@ public class TestLoadIncrementalHFilesSplitRecovery {
* to test this path, so we actually inject a split just before the atomic * to test this path, so we actually inject a split just before the atomic
* region load. * region load.
*/ */
@Test @Test (timeout=120)
public void testSplitWhileBulkLoadPhase() throws Exception { public void testSplitWhileBulkLoadPhase() throws Exception {
final TableName table = TableName.valueOf("splitWhileBulkloadPhase"); final TableName table = TableName.valueOf("splitWhileBulkloadPhase");
setupTable(table, 10); setupTable(table, 10);
@ -373,7 +373,7 @@ public class TestLoadIncrementalHFilesSplitRecovery {
* This test splits a table and attempts to bulk load. The bulk import files * This test splits a table and attempts to bulk load. The bulk import files
* should be split before atomically importing. * should be split before atomically importing.
*/ */
@Test @Test (timeout=120)
public void testGroupOrSplitPresplit() throws Exception { public void testGroupOrSplitPresplit() throws Exception {
final TableName table = TableName.valueOf("groupOrSplitPresplit"); final TableName table = TableName.valueOf("groupOrSplitPresplit");
setupTable(table, 10); setupTable(table, 10);
@ -409,7 +409,7 @@ public class TestLoadIncrementalHFilesSplitRecovery {
* This simulates an remote exception which should cause LIHF to exit with an * This simulates an remote exception which should cause LIHF to exit with an
* exception. * exception.
*/ */
@Test(expected = IOException.class) @Test(expected = IOException.class, timeout=120)
public void testGroupOrSplitFailure() throws Exception { public void testGroupOrSplitFailure() throws Exception {
TableName table = TableName.valueOf("groupOrSplitFailure"); TableName table = TableName.valueOf("groupOrSplitFailure");
setupTable(table, 10); setupTable(table, 10);
@ -439,7 +439,7 @@ public class TestLoadIncrementalHFilesSplitRecovery {
fail("doBulkLoad should have thrown an exception"); fail("doBulkLoad should have thrown an exception");
} }
@Test @Test (timeout=120)
public void testGroupOrSplitWhenRegionHoleExistsInMeta() throws Exception { public void testGroupOrSplitWhenRegionHoleExistsInMeta() throws Exception {
TableName tableName = TableName.valueOf("testGroupOrSplitWhenRegionHoleExistsInMeta"); TableName tableName = TableName.valueOf("testGroupOrSplitWhenRegionHoleExistsInMeta");
byte[][] SPLIT_KEYS = new byte[][] { Bytes.toBytes("row_00000100") }; byte[][] SPLIT_KEYS = new byte[][] { Bytes.toBytes("row_00000100") };