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 Threaded 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
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