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:
parent
3ac06a5ce1
commit
7939a64b70
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue