[ https://issues.apache.org/jira/browse/KAFKA-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14131065#comment-14131065 ]
Neha Narkhede commented on KAFKA-1534: -------------------------------------- [~abhioncbr] Thanks for signing up to fix this. For any of the unit test failures, especially those that are transient in nature, the best way to reproduce is to run it in a loop several times with logging, so you can go back and check why it failed. > transient unit test failure in testBasicPreferredReplicaElection > ---------------------------------------------------------------- > > Key: KAFKA-1534 > URL: https://issues.apache.org/jira/browse/KAFKA-1534 > Project: Kafka > Issue Type: Bug > Components: core > Affects Versions: 0.8.2 > Reporter: Jun Rao > Labels: newbie > > Saw the following transient failure. > kafka.admin.AdminTest > testBasicPreferredReplicaElection FAILED > junit.framework.AssertionFailedError: Timing out after 5000 ms since > leader is not elected or changed for partition [test,1] > at junit.framework.Assert.fail(Assert.java:47) > at > kafka.utils.TestUtils$.waitUntilLeaderIsElectedOrChanged(TestUtils.scala:542) > at > kafka.admin.AdminTest.testBasicPreferredReplicaElection(AdminTest.scala:310) -- This message was sent by Atlassian JIRA (v6.3.4#6332)