[ 
https://issues.apache.org/jira/browse/HBASE-10406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated HBASE-10406:
---------------------------

    Description: 
If column family option (-f) is specified, the following error would occur:
{code}
2014-01-23 23:21:20,347 [Thread-2] ERROR util.AbstractHBaseTool 
(AbstractHBaseTool.java:run(97)) - Error when parsing command-line arguemnts
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -f
        at org.apache.commons.cli.Parser.processOption(Parser.java:363)
        at org.apache.commons.cli.Parser.parse(Parser.java:199)
        at org.apache.commons.cli.Parser.parse(Parser.java:85)
        at 
org.apache.hadoop.hbase.util.AbstractHBaseTool.parseArgs(AbstractHBaseTool.java:135)
        at 
org.apache.hadoop.hbase.util.AbstractHBaseTool.run(AbstractHBaseTool.java:94)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
{code}
This is due to table option is used twice in the following code:
{code}
  protected void addOptions() {
    addOptWithArg(TABLE_ARG, "The table name to target.  Will be created if not 
there already.");
    addOptWithArg(TABLE_ARG, "The family to target");
{code}

  was:
Here was the assertion failure:
{code} java.lang.AssertionError: expected:<1000> but was:<0> at 
org.junit.Assert.fail(Assert.java:88) at 
org.junit.Assert.failNotEquals(Assert.java:743) at 
org.junit.Assert.assertEquals(Assert.java:118) at 
org.junit.Assert.assertEquals(Assert.java:555) at 
org.junit.Assert.assertEquals(Assert.java:542) at 
org.apache.hadoop.hbase.master.TestDistributedLogSplitting.testLogReplayForDisablingTable(TestDistributedLogSplitting.java:838)
 
{code}
This was due to the loop starting around line 823 not picking up any edits 


> Intermittent TestDistributedLogSplitting#testLogReplayForDisablingTable 
> failure
> -------------------------------------------------------------------------------
>
>                 Key: HBASE-10406
>                 URL: https://issues.apache.org/jira/browse/HBASE-10406
>             Project: HBase
>          Issue Type: Test
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>
> If column family option (-f) is specified, the following error would occur:
> {code}
> 2014-01-23 23:21:20,347 [Thread-2] ERROR util.AbstractHBaseTool 
> (AbstractHBaseTool.java:run(97)) - Error when parsing command-line arguemnts
> org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -f
>       at org.apache.commons.cli.Parser.processOption(Parser.java:363)
>       at org.apache.commons.cli.Parser.parse(Parser.java:199)
>       at org.apache.commons.cli.Parser.parse(Parser.java:85)
>       at 
> org.apache.hadoop.hbase.util.AbstractHBaseTool.parseArgs(AbstractHBaseTool.java:135)
>       at 
> org.apache.hadoop.hbase.util.AbstractHBaseTool.run(AbstractHBaseTool.java:94)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> {code}
> This is due to table option is used twice in the following code:
> {code}
>   protected void addOptions() {
>     addOptWithArg(TABLE_ARG, "The table name to target.  Will be created if 
> not there already.");
>     addOptWithArg(TABLE_ARG, "The family to target");
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to