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

A. Sophie Blee-Goldman commented on KAFKA-12935:
------------------------------------------------

Hm, yeah I think I've seen this fail once or twice before. I did look into it a 
bit a while back, and just could not figure out whether it was a possible bug 
or an issue with the test itself. My money's definitely on the latter, but it 
might be worth taking another look sometime if we have the chance. 

If there is a bug that this is uncovering, at least it would not be a 
correctness bug, only an annoyance in restoring when it's not necessary. I 
think it's more likely that the test is flaky because for example the consumer 
dropped out of the group and invoked onPartitionsLost, which would close the 
task as dirty and require restoring from the changelog

> Flaky Test 
> RestoreIntegrationTest.shouldRecycleStateFromStandbyTaskPromotedToActiveTaskAndNotRestore
> ----------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-12935
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12935
>             Project: Kafka
>          Issue Type: Test
>          Components: streams, unit tests
>            Reporter: Matthias J. Sax
>            Priority: Critical
>              Labels: flaky-test
>
> {quote}java.lang.AssertionError: Expected: <0L> but: was <5005L> at 
> org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at 
> org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6) at 
> org.apache.kafka.streams.integration.RestoreIntegrationTest.shouldRecycleStateFromStandbyTaskPromotedToActiveTaskAndNotRestore(RestoreIntegrationTest.java:374)
> {quote}



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

Reply via email to