[SPARK-28183][CORE][UI] Add a task status filter for taskList in REST API#24984
Closed
LantaoJin wants to merge 3 commits intoapache:masterfrom
Closed
[SPARK-28183][CORE][UI] Add a task status filter for taskList in REST API#24984LantaoJin wants to merge 3 commits intoapache:masterfrom
LantaoJin wants to merge 3 commits intoapache:masterfrom
Conversation
Contributor
Author
|
@vanzin @srowen I refactor this implementation follow the comments of #24982 (comment) and #24982 (comment) |
Contributor
Author
|
Can one of the admins verify this patch? |
|
We're closing this PR because it hasn't been updated in a while. If you'd like to revive this PR, please reopen it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
We have a scenario that our application needs to query failed tasks by REST API
/applications/[app-id]/stages/[stage-id]/[stage-attempt-id]/taskListwhen Spark job is running. In a large Stage, it may filter out dozens of failed tasks from hundred thousands total tasks. It consumes much unnecessary memory and time both in Spark and App side.This work splits to two PRs, the previous is #24982 (even though I commit them together here) since filter should be handled before pagination. (Assume 100 items per page, filtering after pagination may get four pages but each of page only contains several items. Actually one page could contains all the filtered item).How was this patch tested?
Add UT.
And manually test:
(In local mode, there is only one running task by default.)
Before:
Return 1 running task and 9 success tasks or 10 success tasks.
After:
Only return 1 running task or empty if all tasks completed.