Hi,
For a few days now I'm fighting with a very strange behaviour of Hbase. I hope
you can explain it to me.
In short: add rows with version, delete all rows, add the same rows again, old
rows disappear.
I create a table, add some rows, some of them with explicit timestamp. After
this, I can retreive them with no problem. However, when I delete the cells in
these rows (all of them), and add the exact same rows to the table again, the
cell with the explicit timestamp is not stored!
I wonder if you can reproduce it and then explain. Here is a script:
---- SCRIPT ----
version
create 'test_delete_1', {NAME => 'f1', VERSIONS => 100}
put 'test_delete_1', 'row_xzy', 'f1', '123', 1342631168000
put 'test_delete_1', 'row_xzy', 'f1', '456'
get 'test_delete_1', 'row_xzy', {TIMERANGE => [1342631167000,
1442631167000], VERSIONS => 10}
deleteall 'test_delete_1', 'row_xzy', 'f1'
put 'test_delete_1', 'row_xzy', 'f1', '123', 1342631168000
put 'test_delete_1', 'row_xzy', 'f1', '456'
get 'test_delete_1', 'row_xzy', {TIMERANGE => [1342631167000,
1442631167000], VERSIONS => 10}
disable 'test_delete_1'
drop 'test_delete_1'
---- END OF SCRIPT ----
...and the output:
---- OUTPUT ----
$ hbase shell test_del.txt
0.90.4-cdh3u3, r, Thu Jan 26 10:13:36 PST 2012
0 row(s) in 0.5080 seconds
0 row(s) in 0.1750 seconds
0 row(s) in 0.0100 seconds
COLUMN CELL
f1:
timestamp=1342631583013, value=456
f1:
timestamp=1342631168000, value=123
2 row(s) in 0.0260 seconds
0 row(s) in 0.0130 seconds
0 row(s) in 0.0080 seconds
0 row(s) in 0.0090 seconds
COLUMN CELL
f1:
timestamp=1342631583071, value=456
1 row(s) in 0.0080 seconds
0 row(s) in 2.0400 seconds
0 row(s) in 1.0880 seconds
---- END OF OUTPUT ----
Thanks!