Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1715

Unit test for Kafka admin deletedMessagesCalled() fail

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.15
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              nickpan47 Yi Pan
              nickpan47 Yi Pan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: