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

Fix flaky TestZkLocalApplicationRunner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • test
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            jiagao Jiazhou Gao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m