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
| Author | Richard Yu |
| Status | Accepted |
| Kafka Version | 2.0 |
| JIRA | KAFKA-6608 |
| Wiki | View on Apache Wiki |
| Created | 2018-03-04 |
| Last Modified | 2018-09-22 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.