You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Jiazhou Gao (Jira)" <ji...@apache.org> on 2021/11/23 23:48:00 UTC

[jira] [Created] (SAMZA-2711) Fix flaky TestZkLocalApplicationRunner

Jiazhou Gao created SAMZA-2711:
----------------------------------

             Summary: Fix flaky TestZkLocalApplicationRunner
                 Key: SAMZA-2711
                 URL: https://issues.apache.org/jira/browse/SAMZA-2711
             Project: Samza
          Issue Type: Bug
          Components: test
            Reporter: Jiazhou Gao


TestZkLocalApplicationRunner.shouldStopNewProcessorsJoiningGroupWhenNumContainersIsGreaterThanNumTasks asserts
  A) JobModel generated before and after the addition of appRunner2 should be equal.
  B) Second stream application(appRunner2) should not join the group and process any message.

Assertion A is good, but the test can not guarantee Assertion B.
The reason is that the test kill appRunner1 then kill appRunner2, but after appRunner1 got killed and before appRunner2 gets killed, ZkJobCoordinator could generate a new JobModel with appRunner 2
That leads to appRunner2 status change from New->Running->SuccessfulFinish
instead of New->UnsuccessfulFinish, which result in the test failure



--
This message was sent by Atlassian Jira
(v8.20.1#820001)