You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2014/04/28 19:16:16 UTC

[jira] [Reopened] (KAFKA-1424) transient unit test failure in testSendWithDeadBroker

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

Jun Rao reopened KAFKA-1424:
----------------------------


The fix is not complete. If there is only a single broker in the cluster, on broker restart, the controller sends the following metadata requests to the broker. The first few requests will have leader as -1. We need to wait until a valid leader is propagated in the metadata cache in the test. 

    [2014-04-25 14:06:26,712] TRACE Controller 0 epoch 2 sending UpdateMetadata request (Leader:-1,ISR:,LeaderEpoch:1,ControllerEpoch:1) with correlationId 3 to broker 0 for partition [test,0] (state.change.logger:36)
    [2014-04-25 14:06:26,714] TRACE Controller 0 epoch 2 sending become-follower LeaderAndIsr request (Leader:-1,ISR:,LeaderEpoch:1,ControllerEpoch:1) with correlationId 4 to broker 0 for partition [test,0] (state.change.logger:36)
    [2014-04-25 14:06:26,714] TRACE Controller 0 epoch 2 sending UpdateMetadata request (Leader:-1,ISR:,LeaderEpoch:1,ControllerEpoch:1) with correlationId 4 to broker 0 for partition [test,0] (state.change.logger:36)
    [2014-04-25 14:06:26,745] TRACE Controller 0 epoch 2 sending become-leader LeaderAndIsr request (Leader:0,ISR:0,LeaderEpoch:2,ControllerEpoch:2) with correlationId 5 to broker 0 for partition [test,0] (state.change.logger:36)
    [2014-04-25 14:06:26,745] TRACE Controller 0 epoch 2 sending UpdateMetadata request (Leader:0,ISR:0,LeaderEpoch:2,ControllerEpoch:2) with correlationId 5 to broker 0 for partition [test,0] (state.change.logger:36)


> transient unit test failure in testSendWithDeadBroker
> -----------------------------------------------------
>
>                 Key: KAFKA-1424
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1424
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.8.2
>            Reporter: Jun Rao
>            Assignee: Jun Rao
>             Fix For: 0.8.2
>
>         Attachments: KAFKA-1424.patch, KAFKA-1424.patch
>
>
> Saw the following transient unit test failure.
> kafka.producer.ProducerTest > testSendWithDeadBroker FAILED
>     java.lang.AssertionError: Message set should have 1 message
>         at org.junit.Assert.fail(Assert.java:69)
>         at org.junit.Assert.assertTrue(Assert.java:32)
>         at kafka.producer.ProducerTest.testSendWithDeadBroker(ProducerTest.scala:245)



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