Skip to content
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

[SPARK-12708][UI] Sorting task error in Stages Page when yarn mode. #10663

Closed
wants to merge 5 commits into from

Conversation

yoshidakuy
Copy link
Contributor

If sort column contains slash(e.g. "Executor ID / Host") when yarn mode,sort fail with following message.

spark-12708

It's similar to SPARK-4313 .

@@ -100,7 +101,19 @@ private[ui] class StagePage(parent: StagesTab) extends WebUIPage("stage") {
val parameterTaskPrevPageSize = request.getParameter("task.prevPageSize")

val taskPage = Option(parameterTaskPage).map(_.toInt).getOrElse(1)
val taskSortColumn = Option(parameterTaskSortColumn).getOrElse("Index")
val taskSortColumn = Option(parameterTaskSortColumn).map {
sortColumn =>
Copy link
Member

Choose a reason for hiding this comment

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

sortColumn should be on previous line like .map { sortColumn =>

@sarutak
Copy link
Member

sarutak commented Jan 8, 2016

ok to test.

@sarutak
Copy link
Member

sarutak commented Jan 8, 2016

@yoshidakuy Does this issue affect both yarn-client and yarn-cluster right?
Also, could you show the screen shot after applying this patch.

@yoshidakuy yoshidakuy changed the title [SPARK-12708][UI] Sorting task error in Stages Page when yarn mode. [SPARK-12708][UI] Sorting task error in Stages Page when yarn mode. Jan 8, 2016
@SparkQA
Copy link

SparkQA commented Jan 8, 2016

Test build #49013 has finished for PR 10663 at commit fc45425.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yoshidakuy
Copy link
Contributor Author

@sarutak Thanks. I have addressed your comment.

Does this issue affect both yarn-client and yarn-cluster right?

Yes.
Fixed screenshot is following.
spark-12708-2

@SparkQA
Copy link

SparkQA commented Jan 8, 2016

Test build #49018 has finished for PR 10663 at commit 62c04ca.

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

// running in yarn mode. `request.getParameter("task.sort")` will return
// "%252F". Therefore we need to decode it until we get the real column name.
// SPARK-4313 is similar to this issue.
var column = sortColumn
Copy link
Member

Choose a reason for hiding this comment

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

Since this is very similar to ExecutorThreadDumpPage, could you create a new method in UIUtils (maybe call it decodeURLParameter and add comments to explain it) and update here and ExecutorThreadDumpPage to use it?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1; good to reduce duplication here.

Copy link
Member

Choose a reason for hiding this comment

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

Make sense.
@yoshidakuy can you add a new method to UIUtils to reduce the similar logic?
Then, call it from ExecutorThreadDumpPage and StagePage.
Also, could you add a test case for the new method to UIUtilsSuite?

@yoshidakuy
Copy link
Contributor Author

Thanks for comments and I agree. will fix later.

@JoshRosen
Copy link
Contributor

Ping @yoshidakuy, could you update this pull request to address our comments? It would be great to merge this soon.

@JoshRosen
Copy link
Contributor

(I think we're going to do a 1.6.1 soon, so if we get this in soon it can be in that release)

@yoshidakuy
Copy link
Contributor Author

@JoshRosen @sarutak Sorry for late.
I found same issue in PoolTable, so I fixed it too.

@SparkQA
Copy link

SparkQA commented Jan 14, 2016

Test build #49396 has finished for PR 10663 at commit 3d508c6.

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

}
id
}.getOrElse {
val executorId = Option(request.getParameter("executorId")).getOrElse {
Copy link
Member

Choose a reason for hiding this comment

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

decodeURLParameter is not invoked.

We should say like as follows right?

Option(...).map { executorId =>
  UIUtils.decodeURLParameter(executorId)
}.getOrElse {
  ...
}

@yoshidakuy
Copy link
Contributor Author

@sarutak @zsxwing Thanks for your review. I have addressed your comments. Could you please check it?

@zsxwing
Copy link
Member

zsxwing commented Jan 14, 2016

LGTM

@SparkQA
Copy link

SparkQA commented Jan 14, 2016

Test build #49407 has finished for PR 10663 at commit 384b990.

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

@zsxwing
Copy link
Member

zsxwing commented Jan 14, 2016

retest this please

@SparkQA
Copy link

SparkQA commented Jan 15, 2016

Test build #49414 has finished for PR 10663 at commit 384b990.

  • This patch fails from timeout after a configured wait of 250m.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak
Copy link
Member

sarutak commented Jan 15, 2016

retest this please.

@SparkQA
Copy link

SparkQA commented Jan 15, 2016

Test build #49433 has finished for PR 10663 at commit 384b990.

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

@sarutak
Copy link
Member

sarutak commented Jan 15, 2016

LGTM as well. Merging into master and branch-1.6. Thanks @yoshidakuy !

asfgit pushed a commit that referenced this pull request Jan 15, 2016
If sort column contains slash(e.g. "Executor ID / Host") when yarn mode,sort fail with following message.

![spark-12708](https://cloud.githubusercontent.com/assets/6679275/12193320/80814f8c-b62a-11e5-9914-7bf3907029df.png)

It's similar to SPARK-4313 .

Author: root <root@R520T1.(none)>
Author: Koyo Yoshida <[email protected]>

Closes #10663 from yoshidakuy/SPARK-12708.

(cherry picked from commit 32cca93)
Signed-off-by: Kousuke Saruta <[email protected]>
@asfgit asfgit closed this in 32cca93 Jan 15, 2016
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.

6 participants