From d72d8485c17c0c9f8465663ed453b96241718153 Mon Sep 17 00:00:00 2001 From: Gary Helmling Date: Wed, 17 Dec 2014 15:53:39 -0800 Subject: [PATCH] TEPHRA-49 Use max versions on flush and compaction --- .../tephra/hbase94/coprocessor/TransactionProcessor.java | 8 ++++---- .../tephra/hbase96/coprocessor/TransactionProcessor.java | 8 ++++---- .../tephra/hbase98/coprocessor/TransactionProcessor.java | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tephra-hbase-compat-0.94/src/main/java/co/cask/tephra/hbase94/coprocessor/TransactionProcessor.java b/tephra-hbase-compat-0.94/src/main/java/co/cask/tephra/hbase94/coprocessor/TransactionProcessor.java index 30d712d6..a3976c0b 100644 --- a/tephra-hbase-compat-0.94/src/main/java/co/cask/tephra/hbase94/coprocessor/TransactionProcessor.java +++ b/tephra-hbase-compat-0.94/src/main/java/co/cask/tephra/hbase94/coprocessor/TransactionProcessor.java @@ -147,7 +147,7 @@ public void preGet(ObserverContext e, Get get, Lis if (LOG.isTraceEnabled()) { LOG.trace("Applying filter to GET for transaction " + tx.getWritePointer()); } - get.setMaxVersions(tx.excludesSize() + 1); + get.setMaxVersions(); get.setTimeRange(TxUtils.getOldestVisibleTimestamp(ttlByFamily, tx), TxUtils.getMaxVisibleTimestamp(tx)); Filter newFilter = Filters.combine(getTransactionFilter(tx, ScanType.USER_SCAN), get.getFilter()); get.setFilter(newFilter); @@ -162,7 +162,7 @@ public RegionScanner preScannerOpen(ObserverContext e, Get get, L throws IOException { Transaction tx = txCodec.getFromOperation(get); if (tx != null) { - get.setMaxVersions(tx.excludesSize() + 1); + get.setMaxVersions(); get.setTimeRange(TxUtils.getOldestVisibleTimestamp(ttlByFamily, tx), TxUtils.getMaxVisibleTimestamp(tx)); Filter newFilter = Filters.combine(getTransactionFilter(tx, ScanType.USER_SCAN), get.getFilter()); get.setFilter(newFilter); @@ -154,7 +154,7 @@ public RegionScanner preScannerOpen(ObserverContext e, Get get, L throws IOException { Transaction tx = txCodec.getFromOperation(get); if (tx != null) { - get.setMaxVersions(tx.excludesSize() + 1); + get.setMaxVersions(); get.setTimeRange(TxUtils.getOldestVisibleTimestamp(ttlByFamily, tx), TxUtils.getMaxVisibleTimestamp(tx)); Filter newFilter = Filters.combine(getTransactionFilter(tx, ScanType.USER_SCAN), get.getFilter()); get.setFilter(newFilter); @@ -154,7 +154,7 @@ public RegionScanner preScannerOpen(ObserverContext