[
https://issues.apache.org/jira/browse/KAFKA-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14332515#comment-14332515
]
Gwen Shapira commented on KAFKA-1976:
-------------------------------------
Thanks [~harsha_ch].
As I mentioned in KAFKA-1887, both are legitimate exceptions for the test,
since they are result of slightly different timings.
> 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)