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 2015/02/23 05:40:11 UTC

[jira] [Commented] (KAFKA-1976) transient unit test failure in ProducerFailureHandlingTest.testNotEnoughReplicasAfterBrokerShutdown

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

Jun Rao commented on KAFKA-1976:
--------------------------------

I suspect the issue is the following: Since broker failure is handled asynchronously, we can get either NotEnoughReplicasException or NotEnoughReplicasAfterAppendException.

> transient unit test failure in ProducerFailureHandlingTest.testNotEnoughReplicasAfterBrokerShutdown
> ---------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-1976
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1976
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.8.3
>            Reporter: Jun Rao
>
> Saw the following failure a few times.
> kafka.api.test.ProducerFailureHandlingTest > testNotEnoughReplicasAfterBrokerShutdown FAILED
>     org.scalatest.junit.JUnitTestFailedError: Expected NotEnoughReplicasException when producing to topic with fewer brokers than min.insync.replicas
>         at org.scalatest.junit.AssertionsForJUnit$class.newAssertionFailedException(AssertionsForJUnit.scala:101)
>         at org.scalatest.junit.JUnit3Suite.newAssertionFailedException(JUnit3Suite.scala:149)
>         at org.scalatest.Assertions$class.fail(Assertions.scala:711)
>         at org.scalatest.junit.JUnit3Suite.fail(JUnit3Suite.scala:149)
>         at kafka.api.test.ProducerFailureHandlingTest.testNotEnoughReplicasAfterBrokerShutdown(ProducerFailureHandlingTest.scala:352)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)