diff --git a/tephra-core/src/main/java/org/apache/tephra/util/TxUtils.java b/tephra-core/src/main/java/org/apache/tephra/util/TxUtils.java index 9619fc49..f6df3c94 100644 --- a/tephra-core/src/main/java/org/apache/tephra/util/TxUtils.java +++ b/tephra-core/src/main/java/org/apache/tephra/util/TxUtils.java @@ -124,10 +124,13 @@ public static long getMaxVisibleTimestamp(Transaction tx) { * as being written by this transaction (and therefore visible). */ public static Transaction createDummyTransaction(TransactionVisibilityState txVisibilityState) { - return new Transaction(txVisibilityState.getReadPointer(), txVisibilityState.getWritePointer(), + return new Transaction(txVisibilityState.getReadPointer(), + txVisibilityState.getVisibilityUpperBound(), + Long.MAX_VALUE, Longs.toArray(txVisibilityState.getInvalid()), Longs.toArray(txVisibilityState.getInProgress().keySet()), - TxUtils.getFirstShortInProgress(txVisibilityState.getInProgress()), TransactionType.SHORT); + TxUtils.getFirstShortInProgress(txVisibilityState.getInProgress()), TransactionType.SHORT, + new long[0], Transaction.VisibilityLevel.SNAPSHOT); } /**