conduktor.io ↗

block.on.buffer.full — Kafka Producer Configuration

When our memory buffer is exhausted we must either stop accepting new records (block) or throw errors. By default this setting is false and the producer will no longer throw a BufferExhaustException but instead will use the max.block.ms value to block, after which it will throw a TimeoutException

Description

When our memory buffer is exhausted we must either stop accepting new records (block) or throw errors. By default this setting is false and the producer will no longer throw a BufferExhaustException but instead will use the max.block.ms value to block, after which it will throw a TimeoutException. Setting this property to true will set the max.block.ms to Long.MAX_VALUE. Also if this property is set to true, parameter metadata.fetch.timeout.ms is no longer honored.This parameter is deprecated and will be removed in a future release. Parameter max.block.ms should be used instead.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Producer0.8.1true
Producer0.8.2true
Producer0.9.0false
Producer0.10.0false
Producer0.10.1false
Producer0.10.2false
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.