Skip to content

Commit

Permalink
HOTFIX: Do not use highest version when version is valid (#19109)
Browse files Browse the repository at this point in the history
Reviewers: Chia-Ping Tsai <[email protected]>
  • Loading branch information
dengziming authored Mar 6, 2025
1 parent 56fc8e9 commit 50510bb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ static EndTransactionMarker deserializeValue(ControlRecordType type, ByteBuffer
throw new InvalidRecordException("Invalid version found for end transaction marker: " + version +
". May indicate data corruption");

if (version > EndTxnMarker.HIGHEST_SUPPORTED_VERSION)
if (version > EndTxnMarker.HIGHEST_SUPPORTED_VERSION) {
log.debug("Received end transaction marker value version {}. Parsing as version {}", version,
EndTxnMarker.HIGHEST_SUPPORTED_VERSION);
EndTxnMarker marker = new EndTxnMarker(new ByteBufferAccessor(value), EndTxnMarker.HIGHEST_SUPPORTED_VERSION);
version = EndTxnMarker.HIGHEST_SUPPORTED_VERSION;
}
EndTxnMarker marker = new EndTxnMarker(new ByteBufferAccessor(value), version);
return new EndTransactionMarker(type, marker.coordinatorEpoch());
}

Expand Down

0 comments on commit 50510bb

Please sign in to comment.