[shell] deleteall does not work quite as advertised
---------------------------------------------------

                 Key: HBASE-2003
                 URL: https://issues.apache.org/jira/browse/HBASE-2003
             Project: Hadoop HBase
          Issue Type: Bug
            Reporter: Andrew Purtell
            Priority: Minor
             Fix For: 0.20.3, 0.21.0
         Attachments: HBASE-2003.patch

In the shell, a delete must match the value's coordinates exactly. By default 
the delete command uses the latest timestamp but you can provide on explicitly. 
So you have to delete each version independent of the others if there are 
multiple versions of a value. 

The command 'deleteall' is supposed to clear out a whole row or a whole column 
of values:

{noformat}
 deleteall Delete all cells in a given row; pass a table name, row, and 
optionally 
           a column and timestamp
{noformat}

but the code won't work as advertised:

{code}
    def deleteall(row, column = nil, timestamp = HConstants::LATEST_TIMESTAMP)
      now = Time.now 
      d = Delete.new(row.to_java_bytes, timestamp, nil)
      @table.delete(d)
      @formatter.header()
      @formatter.footer(now)
    end
{code}

'column' is ignored.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to