Details
-
Sub-task
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
Description
With the new message format proposed in KIP-98, the record level CRC has been moved to the the batch header.
Because we expose the record-level CRC in `RecordMetadata` and `ConsumerRecord`, we currently compute it eagerly based on the key, value and timestamp even though these methods are rarely used. Ideally, we'd deprecate the relevant methods in `RecordMetadata` and `ConsumerRecord` while making the CRC computation lazy. This seems pretty hard to achieve in the Producer without increasing memory retention, but it may be possible to do in the Consumer.
An alternative option is to return the batch CRC from the relevant methods.
Attachments
Issue Links
- is depended upon by
-
KAFKA-4816 Message format changes for idempotent/transactional producer
- Resolved
- links to