HBASE-9192 IntegrationTestBigLinkedListWithChaosMonkey never exits if there is an error

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1513289 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
eclark 2013-08-12 22:49:39 +00:00
parent 3ac06a5ce1
commit 7939a64b70
1 changed files with 9 additions and 3 deletions

View File

@ -128,10 +128,16 @@ public class IntegrationTestBigLinkedListWithChaosMonkey extends IntegrationTest
test.NUM_SLAVES_BASE = 3;
test.setUp();
// run the test
int ret = ToolRunner.run(test.getTestingUtil().getConfiguration(), test, args);
int ret = -1;
try {
// run the test
ret = ToolRunner.run(test.getTestingUtil().getConfiguration(), test, args);
}finally {
// Make 100% sure that the monkey stops.
test.tearDown();
}
test.tearDown();
System.exit(ret);
}
}