Apoorv Mittal created KAFKA-18855: ------------------------------------- Summary: MemoryRecords should have slice API Key: KAFKA-18855 URL: https://issues.apache.org/jira/browse/KAFKA-18855 Project: Kafka Issue Type: Sub-task Reporter: Apoorv Mittal Assignee: Apoorv Mittal
Currently FileRecords have a capability to slice records, however MemoryRecords don't have any. The slice API in MemoryRecords is needed to limit the bytes/records being sent to client from broker during `share fetch`. There can be a subset of records acquired by share fetch for the MemoryRecords batch hence MemoryRecords should be sliced to only send the batches which are acquired. If not sliced, then there can be unnecessary bytes transfer from the broker. -- This message was sent by Atlassian Jira (v8.20.10#820010)