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

Josep Prat commented on KAFKA-13010:
------------------------------------

To add more to the mystery, I'm running the test until failure and I'm already 
over 250 repetitions and can't reproduce the bug (on a i7 CPU 4 cores, 8 
threads).

Maybe what I'm about to say it's pretty obvious, but according to the logs you 
provide, it seems that when the test fails, TaskManager prints:
{code:java}
Handle new assignment with:
        New active tasks: []
        New standby tasks: []
        Existing active tasks: [0_0]
        Existing standby tasks: [] 
{code}
instead of:
{code:java}
Handle new assignment with:
        New active tasks: [0_0]
        New standby tasks: []
        Existing active tasks: []
        Existing standby tasks: [] 
{code}
(or at least it's what's been printed on my machine when test run 
successfully). Notice the "0_0" task being in the "existing active tasks" when 
failing instead of being in "new active tasks".

> Flaky test 
> org.apache.kafka.streams.integration.TaskMetadataIntegrationTest.shouldReportCorrectCommittedOffsetInformation()
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-13010
>                 URL: https://issues.apache.org/jira/browse/KAFKA-13010
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>            Reporter: Bruno Cadonna
>            Assignee: Walker Carlson
>            Priority: Major
>              Labels: flaky-test
>         Attachments: 
> TaskMetadataIntegrationTest#shouldReportCorrectEndOffsetInformation.rtf
>
>
> Integration test {{test 
> org.apache.kafka.streams.integration.TaskMetadataIntegrationTest.shouldReportCorrectCommittedOffsetInformation()}}
>  sometimes fails with
> {code:java}
> java.lang.AssertionError: only one task
>       at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:26)
>       at 
> org.apache.kafka.streams.integration.TaskMetadataIntegrationTest.getTaskMetadata(TaskMetadataIntegrationTest.java:162)
>       at 
> org.apache.kafka.streams.integration.TaskMetadataIntegrationTest.shouldReportCorrectCommittedOffsetInformation(TaskMetadataIntegrationTest.java:117)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to