You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by 曾伟 <wz...@shendusou.com> on 2010/12/07 12:25:07 UTC

Weird Problem: Can not delete a specified row

Hi, 

 

Find a strange problem today.  The deleting operation does not work. Here is
the code:

 

      HTable table = this.pool.getTable(this.tableName);

      System.out.println(table.exists(new Get(row)));

      Delete d=new Delete(row);

      table.delete(d);

      System.out.println(table.exists(new Get(row)));

 

Both outputs are True. And I can also get it by table.get(Get) method.
Obviously the row does not be deleted.

 

I googled this issue on Internet,however nothing valuable can be found.

 

We run this hbase cluster about 1 year(10 datanode and 4 regionservers) ,
never seeing this problem before. 

 

Env:  Ubuntu 10.04  Hadoop CDH3  Hbase 0.20.6 ,table version is 1. 

 

Does anyone encounter this problem?

 

Any clue appreciated

 

Wei.


Re: Weird Problem: Can not delete a specified row

Posted by Stack <st...@duboce.net>.
2010/12/7 Veeramachaneni, Ravi <ra...@navteq.com>:
> Check the timestamp of the row, if it is in future date, you may not be able to delete.
>

Yes.  Also do what Ravi suggests.
St.Ack

RE: Weird Problem: Can not delete a specified row

Posted by "Veeramachaneni, Ravi" <ra...@navteq.com>.
Check the timestamp of the row, if it is in future date, you may not be able to delete.

________________________________________
From: saint.ack@gmail.com [saint.ack@gmail.com] On Behalf Of Stack [stack@duboce.net]
Sent: Tuesday, December 07, 2010 10:27 AM
To: user@hbase.apache.org
Subject: Re: Weird Problem: Can not delete a specified row

Can you dig in more on the row?  Query for all versions of the row to
see what is in there and then see if you have the same issue if you
scan across the row as opposed to Getting it?  Sounds like a bug.
Would be nice to get more info so we can try reproduce on this end.

St.Ack


2010/12/7 曾伟 <wz...@shendusou.com>:
> Hi,
>
>
>
> Find a strange problem today.  The deleting operation does not work. Here is
> the code:
>
>
>
>      HTable table = this.pool.getTable(this.tableName);
>
>      System.out.println(table.exists(new Get(row)));
>
>      Delete d=new Delete(row);
>
>      table.delete(d);
>
>      System.out.println(table.exists(new Get(row)));
>
>
>
> Both outputs are True. And I can also get it by table.get(Get) method.
> Obviously the row does not be deleted.
>
>
>
> I googled this issue on Internet,however nothing valuable can be found.
>
>
>
> We run this hbase cluster about 1 year(10 datanode and 4 regionservers) ,
> never seeing this problem before.
>
>
>
> Env:  Ubuntu 10.04  Hadoop CDH3  Hbase 0.20.6 ,table version is 1.
>
>
>
> Does anyone encounter this problem?
>
>
>
> Any clue appreciated
>
>
>
> Wei.
>
>

The information contained in this communication may be CONFIDENTIAL and is intended only for the use of the recipient(s) named above.  If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited.  If you have received this communication in error, please notify the sender and delete/destroy the original message and any copy of it from your computer or paper files.

Re: Weird Problem: Can not delete a specified row

Posted by Stack <st...@duboce.net>.
Can you dig in more on the row?  Query for all versions of the row to
see what is in there and then see if you have the same issue if you
scan across the row as opposed to Getting it?  Sounds like a bug.
Would be nice to get more info so we can try reproduce on this end.

St.Ack


2010/12/7 曾伟 <wz...@shendusou.com>:
> Hi,
>
>
>
> Find a strange problem today.  The deleting operation does not work. Here is
> the code:
>
>
>
>      HTable table = this.pool.getTable(this.tableName);
>
>      System.out.println(table.exists(new Get(row)));
>
>      Delete d=new Delete(row);
>
>      table.delete(d);
>
>      System.out.println(table.exists(new Get(row)));
>
>
>
> Both outputs are True. And I can also get it by table.get(Get) method.
> Obviously the row does not be deleted.
>
>
>
> I googled this issue on Internet,however nothing valuable can be found.
>
>
>
> We run this hbase cluster about 1 year(10 datanode and 4 regionservers) ,
> never seeing this problem before.
>
>
>
> Env:  Ubuntu 10.04  Hadoop CDH3  Hbase 0.20.6 ,table version is 1.
>
>
>
> Does anyone encounter this problem?
>
>
>
> Any clue appreciated
>
>
>
> Wei.
>
>