[
https://issues.apache.org/jira/browse/KAFKA-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jun Rao updated KAFKA-1390:
---------------------------
Attachment: KAFKA-1390.patch
> 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
> 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)