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

Deprecate the ProgramManager.waitForFinish method.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.0
    • Component/s: CDAP
    • Labels:
      None
    • Release Notes:
      Deprecated the waitForFinish() method in the ProgramManager.
    • Rank:
      1|hzzwef:

      Description

      The ProgramManager.waitForFinish() method calls the status endpoint to figure out if a program is running. Status endpoint checks if runtime info is available in the in-memory map. The runtime info for the program is added asynchronously through the listener mechanism, so it is possible that when a program is started, the status endpoint gets called before its runtime info is added to the in-memory map. Then, the ProgramManager.waitForFinish() returns immediately without running the program, causing test case failures.

      Deprecate the waitForFinish() method and add a method waitForRun() to ProgramManager which will wait for the actual run records of the given status.

        Attachments

          Activity

            People

            • Assignee:
              sagar Sagar Kapare
              Reporter:
              sagar Sagar Kapare
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: