hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] Created: (HBASE-2003) [shell] deleteall does not work quite as advertised
Date Mon, 23 Nov 2009 04:18:39 GMT
[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:

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

but the code won't work as advertised:

    def deleteall(row, column = nil, timestamp = HConstants::LATEST_TIMESTAMP)
      now = Time.now 
      d = Delete.new(row.to_java_bytes, timestamp, nil)

'column' is ignored.

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

View raw message