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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
