mingyen066 opened a new pull request, #21439: URL: https://github.com/apache/kafka/pull/21439
Modified From #19110 1. Convert ControlRecordType schema to use auto-generated protocol `ControlRecordTypeSchema`. 2. Substitute `CURRENT_CONTROL_RECORD_KEY_SIZE` with `controlRecordKeySize()` method since the size is accumulated from `ControlRecordTypeSchema`. 3. Add buffer to `ControlRecordType` to avoid twice compute from `recordKey()` and `controlRecordKeySize()`. 4. flexibleVersions is set to none. 5. Make `parseTypeId` private. Callers use `ControlRecordType.parse(ByteBuffer)` instead. Co-Authored-By: @dengziming -- 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]
