You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "David Arthur (Jira)" <ji...@apache.org> on 2020/05/27 20:35:00 UTC

[jira] [Commented] (KAFKA-1534) transient unit test failure in testBasicPreferredReplicaElection

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

David Arthur commented on KAFKA-1534:
-------------------------------------

Saw this again recently (trunk@2d37c8c8441309). I managed to reproduce on my local machine only once and it was the first run. Every subsequent run passed

> 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, unit tests
>    Affects Versions: 0.8.2.0, 2.4.0
>            Reporter: Jun Rao
>            Priority: Major
>              Labels: flaky-test, 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
(v8.3.4#803005)