Skip to content

Conversation

@warrenzhu25
Copy link
Contributor

@warrenzhu25 warrenzhu25 commented Jun 28, 2020

What changes were proposed in this pull request?

Support fetching taskList by status as below:

/applications/[app-id]/stages/[stage-id]/[stage-attempt-id]/taskList?status=failed

Why are the changes needed?

When there're large number of tasks in one stage, current api is hard to get taskList by status

Does this PR introduce any user-facing change?

Yes. Updated monitoring doc.

How was this patch tested?

Added tests in HistoryServerSuite

@sarutak
Copy link
Member

sarutak commented Jun 29, 2020

Hi @warrenzhu25 , thank you for your contribution.
This PR seems to add a new feature so could you add a testcase for it?
You can find tests for the status API in UISeleniumSuite and HistoryServerSuite.

@warrenzhu25
Copy link
Contributor Author

Hi @warrenzhu25 , thank you for your contribution.
This PR seems to add a new feature so could you add a testcase for it?
You can find tests for the status API in UISeleniumSuite and HistoryServerSuite.

Added UT, but it seems doc build failed. It seems unrelated with my change.

@sarutak
Copy link
Member

sarutak commented Jun 30, 2020

ok to test.

@sarutak
Copy link
Member

sarutak commented Jun 30, 2020

cc: @squito

@SparkQA
Copy link

SparkQA commented Jun 30, 2020

Test build #124655 has finished for PR 28942 at commit c10e38f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak
Copy link
Member

sarutak commented Jul 1, 2020

retest this please.

@SparkQA
Copy link

SparkQA commented Jul 1, 2020

Test build #124714 has finished for PR 28942 at commit c10e38f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@DefaultValue("ID") @QueryParam("sortBy") sortBy: TaskSorting): Seq[TaskData] = {
withUI(_.store.taskList(stageId, stageAttemptId, offset, length, sortBy))
@DefaultValue("ID") @QueryParam("sortBy") sortBy: TaskSorting,
@QueryParam("status") statuses: JList[TaskStatus]): Seq[TaskData] = {
Copy link
Member

@gengliangwang gengliangwang Jul 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to make it as JList here? How about just TaskStatus?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'm also considering using TaskStatus. The reason I use JList is to make it consistent with stageList as below:

  @GET
  def stageList(@QueryParam("status") statuses: JList[StageStatus]): Seq[StageData] = {
    withUI(_.store.stageList(statuses))
  }

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry I was not aware of this. Please change it back to JList to make it consistent.

@SparkQA
Copy link

SparkQA commented Jul 1, 2020

Test build #124801 has finished for PR 28942 at commit 2f55b82.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jul 2, 2020

Test build #124833 has finished for PR 28942 at commit e8e5d6a.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gengliangwang
Copy link
Member

retest this please.

@sarutak
Copy link
Member

sarutak commented Jul 2, 2020

Jenkins will restart around 0:00 PDT so we'll need to let Jenkins run again.

@SparkQA
Copy link

SparkQA commented Jul 2, 2020

Test build #124868 has finished for PR 28942 at commit e8e5d6a.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak
Copy link
Member

sarutak commented Jul 2, 2020

retest this please.

@SparkQA
Copy link

SparkQA commented Jul 2, 2020

Test build #124876 has finished for PR 28942 at commit e8e5d6a.

  • This patch fails build dependency tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak
Copy link
Member

sarutak commented Jul 2, 2020

retest this please.

@SparkQA
Copy link

SparkQA commented Jul 2, 2020

Test build #124879 has finished for PR 28942 at commit e8e5d6a.

  • This patch fails build dependency tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak
Copy link
Member

sarutak commented Jul 2, 2020

retest this please.

@SparkQA
Copy link

SparkQA commented Jul 2, 2020

Test build #124881 has finished for PR 28942 at commit e8e5d6a.

  • This patch fails build dependency tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak
Copy link
Member

sarutak commented Jul 2, 2020

All the dependency failure happens on jenkins-worker4.
It seems worker4 has .m2 corruption issue.

@sarutak
Copy link
Member

sarutak commented Jul 2, 2020

I've reported the .m2 corruption issue (https://issues.apache.org/jira/browse/SPARK-32153#).
So let's try again.

@sarutak
Copy link
Member

sarutak commented Jul 2, 2020

retest this please.

@SparkQA
Copy link

SparkQA commented Jul 2, 2020

Test build #124885 has finished for PR 28942 at commit e8e5d6a.

  • This patch fails build dependency tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak
Copy link
Member

sarutak commented Jul 6, 2020

retest this please.

@SparkQA
Copy link

SparkQA commented Jul 6, 2020

Test build #125114 has finished for PR 28942 at commit e8e5d6a.

  • This patch fails to generate documentation.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak
Copy link
Member

sarutak commented Jul 6, 2020

retest this please.

@SparkQA
Copy link

SparkQA commented Jul 6, 2020

Test build #125117 has finished for PR 28942 at commit e8e5d6a.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@warrenzhu25
Copy link
Contributor Author

retest this please.

1 similar comment
@sarutak
Copy link
Member

sarutak commented Jul 13, 2020

retest this please.

@SparkQA
Copy link

SparkQA commented Jul 13, 2020

Test build #125777 has finished for PR 28942 at commit e8e5d6a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@warrenzhu25
Copy link
Contributor Author

@gengliangwang Tests passed, could you help merge this?

@gengliangwang
Copy link
Member

Thanks, merging to master

@warrenzhu25 warrenzhu25 deleted the SPARK-32125 branch June 11, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants