hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hongbin ma <mahong...@apache.org>
Subject isolation level of put and scan
Date Tue, 17 Nov 2015 08:07:28 GMT
hi,experts:

i have two concurrent threads to read/write same the same htable row.
this row has two columns A and B.

Currently this rows value is (A:a1, B:b1)
thread 1 wants to read the value of this row's column value for A, B
and thread 2 wants to update this row to (A:a2, B:b2)

if thread 1,2 happens at the same time, is it possible that thread 1 gets
(A:a1 B:b2) or (A:a2 B:b1) ?

I'm asking this because this document
https://hbase.apache.org/acid-semantics.html describes  hbase's isolation
level as "read committed", and "read committed" may not prevent the above
scenario.
​
Will the answer vary if A,B are of the same column family or not?
and will checkAndPut help here?

thanks in advance.​

-- 
Regards,

*Bin Mahone | 马洪宾*
Apache Kylin: http://kylin.io
Github: https://github.com/binmahone

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message