Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

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


Copy link to this message
-
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-12, 08:51
+
Kyle Lin 2013-06-13, 02:41
+
冯宏华 2013-06-13, 02:44