You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ismael Juma (JIRA)" <ji...@apache.org> on 2016/05/23 16:35:12 UTC

[jira] [Created] (KAFKA-3747) Close `RecordBatch.records` when append to batch fails

Ismael Juma created KAFKA-3747:
----------------------------------

             Summary: Close `RecordBatch.records` when append to batch fails
                 Key: KAFKA-3747
                 URL: https://issues.apache.org/jira/browse/KAFKA-3747
             Project: Kafka
          Issue Type: Improvement
            Reporter: Ismael Juma
             Fix For: 0.10.0.1


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)