conduktor.io ↗

KIP-266 — Fix consumer indefinite blocking behavior

Accepted Kafka 2.0 Consumer

Introduces a default.api.timeout.ms config for KafkaConsumer and adds Duration-typed overloads to blocking APIs (poll, commitSync, partitionsFor, etc.), replacing the previous indefinite-blocking behavior. Consumer APIs like partitionsFor() and commitSync() with no timeout argument could block indefinitely, causing application threads to hang permanently on broker connectivity issues.

Details

AuthorRichard Yu
StatusAccepted
Kafka Version2.0
JIRAKAFKA-6608
WikiView on Apache Wiki
Created2018-03-04
Last Modified2018-09-22
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.