-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-30119][WEBUI]Support pagination for streaming tab #28748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
### What changes were proposed in this pull request? * Pagination Support is added to all tables of streaming page in spark web UI. For adding pagination support, existing classes from apache#7399 were used. * Earlier streaming page has two tables `Active Batches` and `Completed Batches`. Now, we will have three tables `Running Batches`, `Waiting Batches` and `Completed Batches`. If we have large number of waiting and running batches then keeping track in a single table is difficult. Also other pages have different table for different type type of data. * Earlier empty tables were shown. Now only non-empty tables will be shown. `Active Batches` table used to show details of waiting batches followed by running batches. ### Why are the changes needed? Pagination will allow users to analyse the table in much better way. All spark web UI pages support pagination apart from streaming pages, so this will add consistency as well. Also it might fix the potential OOM errors that can arise. ### Does this PR introduce _any_ user-facing change? Yes. `Active Batches` table is split into two tables `Running Batches` and `Waiting Batches`. Pagination Support is added to the all the tables. Every other functionality is unchanged. ### How was this patch tested? Manually. Before changes: <img width="1667" alt="Screenshot 2020-05-03 at 7 07 14 PM" src="https://user-images.githubusercontent.com/15366835/80915680-8fb44b80-8d71-11ea-9957-c4a3769b8b67.png"> After Changes: <img width="1669" alt="Screenshot 2020-05-03 at 6 51 22 PM" src="https://user-images.githubusercontent.com/15366835/80915694-a9ee2980-8d71-11ea-8fc5-246413a4951d.png"> Closes apache#28439 from iRakson/streamingPagination. Authored-by: iRakson <[email protected]> Signed-off-by: Kousuke Saruta <[email protected]>
|
cc @sarutak Kindly take a look. |
|
Test build #123614 has finished for PR 28748 at commit
|
|
retest this please |
|
Test build #123620 has finished for PR 28748 at commit
|
|
cc @srowen I forgot to cc you |
| // Check batch tables | ||
| val h4Text = findAll(cssSelector("h4")).map(_.text).toSeq | ||
| h4Text.exists(_.matches("Active Batches \\(\\d+\\)")) should be (true) | ||
| h4Text.exists(_.matches("Completed Batches \\(last \\d+ out of \\d+\\)")) should be (true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still flaky isn't it? What if it reaches this line before at least one batch finishes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be fine now. In 2nd attempt it should get at least 1 complete batch. As second attempt is after 500 ms and batches are of 100 ms only.
|
@sarutak gentle ping |
|
Seems OK to me. |
|
Merged to master |
What changes were proposed in this pull request?
#28747 reverted #28439 due to some flaky test case. This PR fixes the flaky test and adds pagination support.
Why are the changes needed?
To support pagination for streaming tab
Does this PR introduce any user-facing change?
Yes, Now streaming tab tables will be paginated.
How was this patch tested?
Manually.