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.
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
| Kafka Version | Default Value |
|---|---|
| 0.8.1 | true |
| 0.8.2 | true |
| 0.9.0 | false |
| 0.10.0 | false |
| 0.10.1 | false |
| 0.10.2 | false |