Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-23811

Handle finished subtasks in CommonTestUtils.waitForAllTaskRunning

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.14.0
    • 1.14.0
    • Tests

    Description

       CommonTestUtils.waitForAllTaskRunning returns when all the subtasks are running AND the job is running and not finished. However, with FLIP-147, subtasks may finish and the job will still be running. So the method won't return and instead timeout.

       

      The solution could be:

      • For new tests that can have finished subtasks treat return if subtask is RUNING || FINISHED
      • For old tests (that assume no finished subtasks) throw an exception

      Note that a subtask may be in some other state (e.g. CANCELLED) which is fine, as it can change after failing over the job.

       

      This change is extracted from FLINK-21090 into a separate ticket because multiple IT cases might be affected.

      Attachments

        Issue Links

          Activity

            People

              roman Roman Khachatryan
              roman Roman Khachatryan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: