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/15 17:37:00 UTC

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

Yi Pan (Data Infrastructure) created SAMZA-1715:
---------------------------------------------------

             Summary: 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)
             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)