kafka/metadata
Nick Guo 707a44a6cb
CI / build (push) Waiting to run Details
KAFKA-19068 Eliminate the duplicate type check in creating ControlRecord (#19346)
jira: https://issues.apache.org/jira/browse/KAFKA-19068

`RecordsIterator#decodeControlRecord` do the type check and then
`ControlRecord` constructor does that again.

we should add a static method to ControlRecord to create `ControlRecord`
with type check, and then `ControlRecord` constructor should be changed
to private to ensure all instance is created by the static method.

Reviewers: PoAn Yang <payang@apache.org>, Chia-Ping Tsai
<chia7712@gmail.com>
2025-05-11 00:07:00 +08:00
..
src KAFKA-19068 Eliminate the duplicate type check in creating ControlRecord (#19346) 2025-05-11 00:07:00 +08:00
.gitignore KAFKA-13429: ignore bin on new modules (#11415) 2021-11-10 14:36:24 -06:00