kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-6734) TopicMetadataTest is flaky
Date Mon, 02 Apr 2018 01:54:00 GMT
Ted Yu created KAFKA-6734:
-----------------------------

             Summary: TopicMetadataTest is flaky
                 Key: KAFKA-6734
                 URL: https://issues.apache.org/jira/browse/KAFKA-6734
             Project: Kafka
          Issue Type: Test
            Reporter: Ted Yu


I got two different test failures in two runs of test suite:
{code}
kafka.integration.TopicMetadataTest > testAutoCreateTopic FAILED
    kafka.common.KafkaException: fetching topic metadata for topics [Set(testAutoCreateTopic)]
from broker [List(BrokerEndPoint(0,,41557))] failed
        at kafka.client.ClientUtils$.fetchTopicMetadata(ClientUtils.scala:77)
        at kafka.client.ClientUtils$.fetchTopicMetadata(ClientUtils.scala:98)
        at kafka.integration.TopicMetadataTest.testAutoCreateTopic(TopicMetadataTest.scala:105)

        Caused by:
        java.net.SocketTimeoutException
            at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:211)
            at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
            at java.nio.channels.Channels$ReadableByteChannelImpl.read(Channels.java:385)
            at org.apache.kafka.common.network.NetworkReceive.readFromReadableChannel(NetworkReceive.java:122)
            at kafka.network.BlockingChannel.readCompletely(BlockingChannel.scala:131)
            at kafka.network.BlockingChannel.receive(BlockingChannel.scala:122)
            at kafka.producer.SyncProducer.liftedTree1$1(SyncProducer.scala:82)
            at kafka.producer.SyncProducer.kafka$producer$SyncProducer$$doSend(SyncProducer.scala:79)
            at kafka.producer.SyncProducer.send(SyncProducer.scala:124)
            at kafka.client.ClientUtils$.fetchTopicMetadata(ClientUtils.scala:63)
            ... 2 more
{code}
{code}
kafka.integration.TopicMetadataTest > testIsrAfterBrokerShutDownAndJoinsBack FAILED
    java.lang.AssertionError: Topic metadata is not correctly updated for broker kafka.server.KafkaServer@4c45dc9f.
    Expected ISR: List(BrokerEndPoint(0,localhost,40822), BrokerEndPoint(1,localhost,39030))
    Actual ISR  : Vector(BrokerEndPoint(0,localhost,40822))
        at kafka.utils.TestUtils$.fail(TestUtils.scala:355)
        at kafka.utils.TestUtils$.waitUntilTrue(TestUtils.scala:865)
        at kafka.integration.TopicMetadataTest$$anonfun$checkIsr$1.apply(TopicMetadataTest.scala:191)
        at kafka.integration.TopicMetadataTest$$anonfun$checkIsr$1.apply(TopicMetadataTest.scala:189)
        at scala.collection.immutable.List.foreach(List.scala:392)
        at kafka.integration.TopicMetadataTest.checkIsr(TopicMetadataTest.scala:189)
        at kafka.integration.TopicMetadataTest.testIsrAfterBrokerShutDownAndJoinsBack(TopicMetadataTest.scala:231)
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message