Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> Scanning not show the correct value of latest version


+
Kyle Lin 2013-06-11, 08:58
+
冯宏华 2013-06-12, 08:51
Copy link to this message
-
Re: 答复: Scanning not show the correct value of latest version
Hello Hong Hua

   I've do some experiments and really got the rule of deletion. Thanks for
your explanation.

2013/6/12 冯宏华 <[EMAIL PROTECTED]>

> hi, Kyle
>
> This is NOT a bug. There are three types of delete: Delete, DeleteColumn,
> DeleteFamily; Delete is actually DeleteCell which can only mask(delete) a
> cell with exactly the SAME timestamp, in your below case, "* Row1
>                      column=cf:c2, timestamp=1370935373545, type=Delete" is
> a Delete (DeleteCell) so it can only mask(delete) " Row1   column=cf:c2,
> timestamp=1370935373545, value=kk" since they have the same timestamps, but
> can't mask(delete) "Row1  column=cf:c2, timestamp=1370935357741, value=h
> *" since they have different timestamps
>
> DeleteColumn can do what you expect: it can mask(delete) cells under the
> column with timestamps less or equal to the timestamp of the DeleteColumn
>
> --Honghua
>
> ________________________________________
> 发件人: Kyle Lin [[EMAIL PROTECTED]]
> 发送时间: 2013年6月11日 16:58
> 收件人: [EMAIL PROTECTED]
> 主题: Scanning not show the correct value of latest version
>
> Hey Guys
>
>     After I modifying a cell many times with delete action, The result of
> scan is not correct.
>
>     I Expect the value of "Row1 cf:c2" is null because I've delete the
> cell(The line with blue color below). But I actually got "h"(The line with
> green color below).
>
>     Is this a hbase bug? Or my operating fault?
>
> hbase(main):007:0> scan 'table42', {RAW => true, VERSIONS => 3}
> ROW
> COLUMN+CELL
>
>  Row1                                column=cf:c1, timestamp=1370935357679,
> value=e
> * Row1                                column=cf:c2,
> timestamp=1370935373545, type=Delete
>
>  Row1                                column=cf:c2, timestamp=1370935373545,
> value=kk
>  Row1                                column=cf:c2, timestamp=1370935357741,
> value=h   *
>  Row2                                column=cf:c1, timestamp=1370935357804,
> value=p
>  Row2                                column=cf:c2, timestamp=1370935380939,
> value=pp
>  Row2                                column=cf:c2, timestamp=1370935373582,
> value=jj
>  Row2                                column=cf:c2, timestamp=1370935357774,
> value=d
> 2 row(s) in 0.0220 seconds
>
> hbase(main):008:0> scan 'table42'
> ROW
> COLUMN+CELL
>
>  Row1                                column=cf:c1, timestamp=1370935357679,
> value=e
> * Row1                                column=cf:c2,
> timestamp=1370935357741, value=h  *
>
>  Row2                                column=cf:c1, timestamp=1370935357804,
> value=p
>  Row2                                column=cf:c2, timestamp=1370935380939,
> value=pp
> 2 row(s) in 0.0200 seconds
>
>
> *P.S. My HBase Version is 0.94.6*
>
>
> Kyle
>
+
冯宏华 2013-06-13, 02:44
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB