You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Yi Pan (Data Infrastructure) (JIRA)" <ji...@apache.org> on 2018/05/17 19:33:00 UTC

[jira] [Resolved] (SAMZA-1715) Unit test for Kafka admin deletedMessagesCalled() fail

     [ https://issues.apache.org/jira/browse/SAMZA-1715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yi Pan (Data Infrastructure) resolved SAMZA-1715.
-------------------------------------------------
    Resolution: Fixed

> Unit test for Kafka admin deletedMessagesCalled() fail
> ------------------------------------------------------
>
>                 Key: SAMZA-1715
>                 URL: https://issues.apache.org/jira/browse/SAMZA-1715
>             Project: Samza
>          Issue Type: Improvement
>            Reporter: Yi Pan (Data Infrastructure)
>            Priority: Major
>             Fix For: 0.15
>
>
> There is a intermittent failure in TestRepartitionJoinWindowApp.testRepartitionJoinWindowAppWithoutDeletionOnCommit() due to the flag deleteMessagesCalled is *always* set and SystemAdmin.deleteMessages() is always called in TaskInstance.commit(). Hence, when the auto-commit is triggered in the test, the assertion in the unit test will fail.
> The fix is to set the deleteMessagesCalled flag *only* when the actual delete action is invoked.



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