-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.10.0.1
-
Component/s: None
-
Labels:None
We should close the existing `RecordBatch.records` when we create a new `RecordBatch` for the `TopicPartition`.
This would mean that we would only retain temporary resources like compression stream buffers for one `RecordBatch` per partition, which can have a significant impact when producers are dealing with slow brokers, see KAFKA-3704 for more details.
- links to