Skip to content

Commit

Permalink
Fix bug -- we don't want to remove true value for clientEpochBump
Browse files Browse the repository at this point in the history
  • Loading branch information
jolshan committed Dec 18, 2024
1 parent b85f758 commit cb99d6c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,8 @@ public synchronized void maybeUpdateTransactionV2Enabled(boolean onInitiatializa
Short transactionVersion = info.finalizedFeatures.get("transaction.version");
boolean wasTransactionV2Enabled = isTransactionV2Enabled;
isTransactionV2Enabled = transactionVersion != null && transactionVersion >= 2;
clientSideEpochBumpRequired = !onInitiatialization && !wasTransactionV2Enabled && isTransactionV2Enabled;
if (!onInitiatialization && !wasTransactionV2Enabled && isTransactionV2Enabled)
clientSideEpochBumpRequired = true;
}

public boolean isTransactionV2Enabled() {
Expand Down

0 comments on commit cb99d6c

Please sign in to comment.