HBASE-5825 TestHLog not running any tests; fix
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1327686 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5eb1259399
commit
a0a2674c42
|
@ -348,8 +348,18 @@ public final class HLogPerformanceEvaluation extends Configured implements Tool
|
|||
return(endTime - startTime);
|
||||
}
|
||||
|
||||
/**
|
||||
* The guts of the {@link #main} method.
|
||||
* Call this method to avoid the {@link #main(String[])} System.exit.
|
||||
* @param args
|
||||
* @return errCode
|
||||
* @throws Exception
|
||||
*/
|
||||
static int innerMain(final String [] args) throws Exception {
|
||||
return ToolRunner.run(HBaseConfiguration.create(), new HLogPerformanceEvaluation(), args);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
int exitCode = ToolRunner.run(HBaseConfiguration.create(), new HLogPerformanceEvaluation(), args);
|
||||
System.exit(exitCode);
|
||||
System.exit(innerMain(args));
|
||||
}
|
||||
}
|
|
@ -142,7 +142,9 @@ public class TestHLog {
|
|||
// Run the HPE tool with three threads writing 3000 edits each concurrently.
|
||||
// When done, verify that all edits were written and that the order in the
|
||||
// WALs is of ascending edit sequence ids.
|
||||
HLogPerformanceEvaluation.main(new String [] {"-threads", "3", "-verify", "-iterations", "3000"});
|
||||
int errCode =
|
||||
HLogPerformanceEvaluation.innerMain(new String [] {"-threads", "3", "-verify", "-iterations", "3000"});
|
||||
assertEquals(0, errCode);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue