You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "nileshkumar3 (via GitHub)" <gi...@apache.org> on 2026/06/08 12:22:08 UTC
[PR] KAFKA-20659: Reject unsupported MirrorMaker record versions at runtime [kafka]
nileshkumar3 opened a new pull request, #22504:
URL: https://github.com/apache/kafka/pull/22504
## Summary
Fixes [KAFKA-20659](https://issues.apache.org/jira/browse/KAFKA-20659).
`Checkpoint.deserializeRecord()` and `Heartbeat.deserializeRecord()` validate
the value header version only via `assert version == 0`. Assertions are
disabled by default (`-da`), so unsupported versions are silently parsed
with the v0 schema. With assertions enabled (`-ea`), the same input fails
with `AssertionError` instead of a proper runtime exception.
Replace the `assert` with an explicit check that throws
`UnsupportedVersionException` when `version != VERSION`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-20659: Reject unsupported MirrorMaker record versions at runtime [kafka]
Posted by "nileshkumar3 (via GitHub)" <gi...@apache.org>.
nileshkumar3 commented on PR #22504:
URL: https://github.com/apache/kafka/pull/22504#issuecomment-4794399300
Thanks @mimaison for review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-20659: Reject unsupported MirrorMaker record versions at runtime [kafka]
Posted by "mimaison (via GitHub)" <gi...@apache.org>.
mimaison merged PR #22504:
URL: https://github.com/apache/kafka/pull/22504
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-20659: Reject unsupported MirrorMaker record versions at runtime [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22504:
URL: https://github.com/apache/kafka/pull/22504#issuecomment-4715038683
A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the `triage` label
should be removed to prevent this automation from happening again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org