Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
The new Producer client attempts to be fully asynchronous. However, it sill has the potential to block at the start of the send method when it asks for the metadata for the topic. (waitOnMetadata(record.topic(), this.metadataFetchTimeoutMs))
There is a timeout (60 seconds, by default), but it would be nice if this lookup was performed in the background thread as well. This way producers could fire and forget without any potential to block the sending thread.
Attachments
Issue Links
- duplicates
-
KAFKA-1835 Kafka new producer needs options to make blocking behavior explicit
- Resolved