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

Statistics Endpoint doesn't return 404 for non existent workflows

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: App Fabric
    • Labels:
      None
    • Rank:
      1|i006x3:

      Description

      Today if we query statistics api for a workflow that doesn't exist the response is not 404. Instead it is

      There are no statistics associated with this workflow : DataStreamsSparkStreaming in the specified time range

      we should return proper response code when querying statistics for non existent workflows .

      request : /namespaces/:namespace/apps/:appId/workflows/:workflowId/statistics?start=0

      response : There are no statistics associated with this workflow : DataStreamsSparkStreaming in the specified time range.

        Attachments

          Activity

            People

            • Assignee:
              bhooshan Bhooshan Mogal
              Reporter:
              ajai Ajai Narayan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: