Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-14079

ProgramLifecycleHttpHandlerTest is flaky

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0, 5.0.0
    • Fix Version/s: 5.1.0
    • Component/s: App Fabric, Test
    • Labels:
    • Rank:
      1|i00gc7:

      Description

      One reason for the flakiness appears to be that testStartProgramWithDisabledRuntimeArgs() - which is misnamed because it tests a disabled profile - starts a workflow but does not properly wait for it to finish. This workflow is then still running when the test shuts down. That appears to trigger a deadlock in MapReduce (see CDAP-14076) that can cause the build to hang.

      The method should be renamed and it needs to use Tasks.waitFor() to assert that the workflow has finished.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andreas Andreas Neumann
                Reporter:
                andreas Andreas Neumann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: