Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-20218

'/applications/[app-id]/stages' in REST API,add description.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.2, 2.2.0
    • Component/s: Documentation
    • Labels:
      None

      Description

      1. '/applications/[app-id]/stages' in rest api.status should add description '?status=[active|complete|pending|failed] list only stages in the state.'

      Now the lack of this description, resulting in the use of this api do not know the use of the status through the brush stage list.

      2.'/applications/[app-id]/stages/[stage-id]' in REST API,remove redundant description ‘?status=[active|complete|pending|failed] list only stages in the state.’.
      Because only one stage is determined based on stage-id.

      code:
      @GET
      def stageList(@QueryParam("status") statuses: JList[StageStatus]): Seq[StageData] = {
      val listener = ui.jobProgressListener
      val stageAndStatus = AllStagesResource.stagesAndStatus(ui)
      val adjStatuses = {
      if (statuses.isEmpty())

      { Arrays.asList(StageStatus.values(): _*) }

      else

      { statuses }

      };

        Attachments

          Activity

            People

            • Assignee:
              guoxiaolongzte guoxiaolongzte
              Reporter:
              guoxiaolongzte guoxiaolongzte
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: