[ 
https://issues.apache.org/jira/browse/KAFKA-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jun Rao resolved KAFKA-1390.
----------------------------

       Resolution: Fixed
    Fix Version/s: 0.8.2
         Assignee: Jun Rao

Thanks for the review. Committed to trunk and filed the following followup 
jiras.

KAFKA-1395
KAFKA-1396
KAFKA-1397


> TestUtils.waitUntilLeaderIsElectedOrChanged may wait longer than it needs
> -------------------------------------------------------------------------
>
>                 Key: KAFKA-1390
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1390
>             Project: Kafka
>          Issue Type: Improvement
>    Affects Versions: 0.8.2
>            Reporter: Jun Rao
>            Assignee: Jun Rao
>             Fix For: 0.8.2
>
>         Attachments: KAFKA-1390.patch
>
>
> The way that waitUntilLeaderIsElectedOrChanged() works is to wait for a ZK 
> callback on leader change. However, if the leader is already elected (and 
> won't change) at the time waitUntilLeaderIsElectedOrChanged() is called, this 
> function will wait for the full timeout, which is unnecessary.



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

Reply via email to