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

Workflow's inner program has improper stop REST API behavior

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.0, 3.1.1, 3.1.0
    • Fix Version/s: None
    • Component/s: Workflow
    • Labels:
    • Rank:
      1|hzyyjb:

      Description

      You can start a Workflow that has a MR program in it. Then, the status endpoint for the MR program will show running once it is actually running.
      However, the stop-program REST API for the inner MR program will respond that the program is not actually running when it is hit.

      For instance, if the TopNMapReduce is running within a workflow and you hit the following endpoint:
      <HOSTNAME>:10000/v3/namespaces/default/apps/WikipediaPipelineApp/mapreduce/TopNMapReduce/stop
      it will return:
      java.io.IOException: 400: Program not running
      which is logged from:
      https://github.com/caskdata/cdap/blob/develop/cdap-app-fabric/src/main/java/co/cask/cdap/gateway/handlers/ProgramLifecycleHttpHandler.java#L1434-1434

      Either an improved error message needs to be returned or the MR program needs to be allowed to be stopped.

      Bhooshan Mogal

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sagar Sagar Kapare
                Reporter:
                ali.anwar Ali Anwar
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: