[ 
https://issues.apache.org/jira/browse/KAFKA-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059286#comment-14059286
 ] 

Jay Kreps commented on KAFKA-1515:
----------------------------------

Committed with a very minor change: I renamed the isReadyToSend method to 
isSendable simply because we had like four methods that were ready/isReady/etc 
and each meant something slightly different. This hopefully differentiates 
better: sendable is when you are connected and have room to send, ready is when 
you are sendable and there is nothing else going on that makes us want to block 
the request. 

> Wake-up Sender upon blocked on fetching leader metadata
> -------------------------------------------------------
>
>                 Key: KAFKA-1515
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1515
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Guozhang Wang
>            Assignee: Guozhang Wang
>             Fix For: 0.9.0
>
>         Attachments: KAFKA-1515.patch, KAFKA-1515_2014-07-03_10:19:28.patch, 
> KAFKA-1515_2014-07-03_16:43:05.patch, KAFKA-1515_2014-07-07_10:55:58.patch, 
> KAFKA-1515_2014-07-08_11:35:59.patch
>
>
> Currently the new KafkaProducer will not wake up the sender thread upon 
> forcing metadata fetch, and hence if the sender is polling with a long 
> timeout (e.g. the metadata.age period) this wait will usually timeout and 
> fail.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to