Hi,
I seem to be able to write the a row, delete it, then write it again, if I use
custom version timestamps.
As you can see from the HBase shell session below, I am:
1) creating a row with id = "r1" and custom version timestamp
2) deleteall from table
3) attempt to put another row with id = "r1", also with custom version timestamp
4) successfully able to create another row, with different row id = "r2"
I should note that if I do NOT specify a custom timestamp, this problem does
not seem to show up.
Perhaps I'm misusing the version timestamp api?
Kyle
1)
hbase(main):028:0> put "capjure_test", "r1", "meta", "v1", 123
0 row(s) in 0.0030 seconds
hbase(main):029:0> scan "capjure_test"
ROW COLUMN+CELL
r1 column=meta:, timestamp=123, value=v1
1 row(s) in 0.0060 seconds
2)
hbase(main):030:0> deleteall "capjure_test", "r1"
0 row(s) in 0.0020 seconds
3)
hbase(main):031:0> put "capjure_test", "r1", "meta", "v1", 124
0 row(s) in 0.0050 seconds
hbase(main):032:0> scan "capjure_test"
ROW COLUMN+CELL
0 row(s) in 0.0030 seconds
hbase(main):033:0> flush "capjure_test"
0 row(s) in 0.0900 seconds
hbase(main):034:0> scan "capjure_test"
ROW COLUMN+CELL
0 row(s) in 0.0070 seconds
4)
hbase(main):037:0> put "capjure_test", "r2", "meta", "v1", 124
0 row(s) in 0.0030 seconds
hbase(main):038:0> scan "capjure_test"
ROW COLUMN+CELL
r2 column=meta:, timestamp=124, value=v1
1 row(s) in 0.0070 seconds