Arvind Kandpal created HBASE-30552:
--------------------------------------
Summary: WALPerformanceEvaluation usage text does not match its
argument parsing
Key: HBASE-30552
URL: https://issues.apache.org/jira/browse/HBASE-30552
Project: HBase
Issue Type: Bug
Components: wal
Reporter: Arvind Kandpal
The usage text of WALPerformanceEvaluation does not match how the tool parses
its arguments:
1. The usage lists "-traceFreq <N>", but since HBASE-25373 the parser treats
-traceFreq as a flag and no longer reads its value. A command like "-traceFreq
0.5" now fails:
{code}
-traceFreq is not supported any more
UNEXPECTED: 0.5
{code}
The usage text still describes the old tracing behaviour.
2. The usage lists "-h|-help", but the parser accepts "-h" and "--help".
"-help" fails with "UNEXPECTED: -help".
3. "-compress" is supported by the parser but is missing from the usage text.
4. An option that needs a value, given as the last argument (for example
"-threads" with no value), throws an uncaught ArrayIndexOutOfBoundsException
instead of printing the usage:
{code}
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 7
out of bounds for length 7
{code}
On master and branch-3 the class is in hbase-diagnostics. On branch-2.x it is
in
hbase-server/src/test/java/org/apache/hadoop/hbase/wal/WALPerformanceEvaluation.java
and has the same issues.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)