Skip to content

[SPARK-4329][WebUI] HistoryPage pagenation #3194

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

Closed
wants to merge 8 commits into from

Conversation

sarutak
Copy link
Member

@sarutak sarutak commented Nov 11, 2014

Current HistoryPage have links only to previous page or next page.
I suggest to add index to access history pages easily.

I implemented like following pics.

If there are many pages, current page +/- N pages, head page and last page are indexed.

2014-11-10 16 13 25
2014-11-10 16 03 21
2014-11-10 16 03 39
2014-11-10 16 03 49
2014-11-10 16 04 04

@sarutak sarutak changed the title [SPARK-4329] Add indexing feature for HistoryPage [SPARK-4329][WebUI] Add indexing feature for HistoryPage Nov 11, 2014
@SparkQA
Copy link

SparkQA commented Nov 11, 2014

Test build #23174 has started for PR 3194 at commit cfa242b.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 11, 2014

Test build #23174 has finished for PR 3194 at commit cfa242b.

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

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23174/
Test FAILed.

@sarutak
Copy link
Member Author

sarutak commented Nov 11, 2014

I think the failure above is not related my changes.

Jenkins, retest this please.

@sarutak
Copy link
Member Author

sarutak commented Nov 11, 2014

retest this please.

@SparkQA
Copy link

SparkQA commented Nov 11, 2014

Test build #23187 has started for PR 3194 at commit cfa242b.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 11, 2014

Test build #23187 has finished for PR 3194 at commit cfa242b.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23187/
Test PASSed.

@sarutak sarutak changed the title [SPARK-4329][WebUI] Add indexing feature for HistoryPage [SPARK-4329][WebUI] HistoryPage pagenation Nov 11, 2014
@andrewor14
Copy link
Contributor

Yes!! I've been wanting to add this ever since 1.0. I'll take a look at this after the release. Also, I think +/- 2 pages is enough. Right now it looks a little cluttered.

@sarutak
Copy link
Member Author

sarutak commented Nov 12, 2014

@andrewor14 Thanks for taking a look at this PR!
I'll modify codes to be simpler.

@SparkQA
Copy link

SparkQA commented Nov 12, 2014

Test build #23229 has started for PR 3194 at commit ec7922e.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 12, 2014

Test build #23229 has finished for PR 3194 at commit ec7922e.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait LeaderElectionAgent
    • trait LeaderElectable
    • trait PersistenceEngine
    • abstract class StandaloneRecoveryModeFactory(conf: SparkConf)
    • class IndexShuffleBlockManager(conf: SparkConf) extends ShuffleBlockManager
    • public final class LazyFileRegion extends AbstractReferenceCounted implements FileRegion

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23229/
Test FAILed.

@SparkQA
Copy link

SparkQA commented Nov 12, 2014

Test build #23230 has started for PR 3194 at commit b2240f8.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 12, 2014

Test build #23230 has finished for PR 3194 at commit b2240f8.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23230/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Nov 18, 2014

Test build #23543 has started for PR 3194 at commit 76b05e3.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 18, 2014

Test build #23543 has finished for PR 3194 at commit 76b05e3.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23543/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Dec 1, 2014

Test build #23963 has started for PR 3194 at commit 1c2f605.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Dec 1, 2014

Test build #23963 has finished for PR 3194 at commit 1c2f605.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23963/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Dec 10, 2014

Test build #24279 has started for PR 3194 at commit c93932e.

  • This patch merges cleanly.

val littlerSideIndices =
rangeIndices(actualPage - maxNumIndices until actualPage, 1 < _)
val greaterSideIndices =
rangeIndices(actualPage + 1 to actualPage + maxNumIndices, _ < pageCount)
Copy link
Contributor

Choose a reason for hiding this comment

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

These could just be leftSideIndices and rightSideIndices

@andrewor14
Copy link
Contributor

Hey just a few minor comments but the approach looks good. Thanks for working on this.

@sarutak
Copy link
Member Author

sarutak commented Dec 10, 2014

@andrewor14 Thanks for all of your comments! I'll fix soon.

@SparkQA
Copy link

SparkQA commented Dec 10, 2014

Test build #24290 has started for PR 3194 at commit 15d3d2d.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Dec 10, 2014

Test build #24279 has finished for PR 3194 at commit c93932e.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24279/
Test PASSed.

// `plusOrMinus` pages of the current page.
// Regardless of where the current page is,
// this also links to the first and last page.
// If the current page +/- `plusOrMinux` is greater than the 2nd page
Copy link
Contributor

Choose a reason for hiding this comment

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

plusOrMinux, I'll fix this when I merge don't worry

@andrewor14
Copy link
Contributor

LGTM

@SparkQA
Copy link

SparkQA commented Dec 10, 2014

Test build #24290 has finished for PR 3194 at commit 15d3d2d.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24290/
Test PASSed.

@andrewor14
Copy link
Contributor

I'm merging this into master thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants