Github user ebortnik commented on a diff in the pull request:
https://github.com/apache/incubator-omid/pull/12#discussion_r129018289
--- Diff:
hbase-client/src/main/java/org/apache/omid/transaction/TTable.java ---
@@ -396,15 +400,23 @@ public ResultScanner getScanner(Transaction tx, Scan
scan) throws IOException {
return commitCache;
}
- private boolean isCellInSnapshot(Cell kv, HBaseTransaction
transaction, Map<Long, Long> commitCache)
- throws IOException {
+ private boolean isCellInTransaction(Cell kv, HBaseTransaction
transaction, Map<Long, Long> commitCache) {
long startTimestamp = transaction.getStartTimestamp();
+ long readTimestamp = transaction.getReadTimestamp();
- if (kv.getTimestamp() == startTimestamp) {
+ if (kv.getTimestamp() >= startTimestamp && kv.getTimestamp() <=
readTimestamp) {
--- End diff --
Please add some comments
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---