hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Created: (HBASE-702) deleteall doesn't
Date Mon, 23 Jun 2008 18:14:45 GMT
deleteall doesn't
-----------------

                 Key: HBASE-702
                 URL: https://issues.apache.org/jira/browse/HBASE-702
             Project: Hadoop HBase
          Issue Type: Bug
            Reporter: stack
             Fix For: 0.2.0


>From the list, cure at xg dot pol:

{code}
Hi

  Hbase 0.2.0 dev - fresh from trunk 
  Example :
       I have a table x with column : 'col'.

  i put somevalue into column 'col' for row 'aaa':

       HTable table = new HTable("x");
       BatchUpdate batch = new BatchUpdate("aaa");
       batch.put("col:", "somevalue".getBytes());
       table.commit(batch);                  
  i deleteAll - full denial remove 'aaa'

       table.deleteAll("aaa".getBytes());

  but  on shell i see that this row still exists.

  when i use deleteAll(row, column) - it's ok and value is removed.

 Thanks - Antony 
{code}

I then tried it myself:

{code}
durruti:~/Documents/checkouts/hbase/trunk stack$ ./bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Version: 0.2.0-dev, r670651, Mon Jun 23 11:08:56 PDT 2008
hbase(main):001:0> scan 'x'
ROW                          COLUMN+CELL
 aaa                         column=x:, timestamp=1214243416011, value=somevalue
1 row(s) in 0.1760 seconds
hbase(main):002:0> deleteall 'x', 'aaa'
0 row(s) in 0.0030 seconds
hbase(main):003:0> scan 'x'
ROW                          COLUMN+CELL
 aaa                         column=x:, timestamp=1214243416011, value=somevalue
1 row(s) in 0.0100 seconds
{code}

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


Mime
View raw message