You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by squito <gi...@git.apache.org> on 2018/02/15 19:58:23 UTC

[GitHub] spark pull request #20623: [SPARK-23413][UI] Fix sorting tasks by Host / Exe...

GitHub user squito opened a pull request:

    https://github.com/apache/spark/pull/20623

    [SPARK-23413][UI] Fix sorting tasks by Host / Executor ID at the Stag…

    …e page
    
    ## What changes were proposed in this pull request?
    
    Fixing exception got at sorting tasks by Host / Executor ID:
    ```
            java.lang.IllegalArgumentException: Invalid sort column: Host
    	at org.apache.spark.ui.jobs.ApiHelper$.indexName(StagePage.scala:1017)
    	at org.apache.spark.ui.jobs.TaskDataSource.sliceData(StagePage.scala:694)
    	at org.apache.spark.ui.PagedDataSource.pageData(PagedTable.scala:61)
    	at org.apache.spark.ui.PagedTable$class.table(PagedTable.scala:96)
    	at org.apache.spark.ui.jobs.TaskPagedTable.table(StagePage.scala:708)
    	at org.apache.spark.ui.jobs.StagePage.liftedTree1$1(StagePage.scala:293)
    	at org.apache.spark.ui.jobs.StagePage.render(StagePage.scala:282)
    	at org.apache.spark.ui.WebUI$$anonfun$2.apply(WebUI.scala:82)
    	at org.apache.spark.ui.WebUI$$anonfun$2.apply(WebUI.scala:82)
    	at org.apache.spark.ui.JettyUtils$$anon$3.doGet(JettyUtils.scala:90)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    	at org.spark_project.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
    	at org.spark_project.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)
    ```
    
    Moreover some refactoring to avoid similar problems by introducing constants for each header name and reusing them at the identification of the corresponding sorting index.
    
    ## How was this patch tested?
    
    Manually:
    
    ![screen shot 2018-02-13 at 18 57 10](https://user-images.githubusercontent.com/2017933/36166532-1cfdf3b8-10f3-11e8-8d32-5fcaad2af214.png)
    
    Author: “attilapiros” <pi...@gmail.com>
    
    Closes #20601 from attilapiros/SPARK-23413.
    
    (cherry picked from commit 1dc2c1d5e85c5f404f470aeb44c1f3c22786bdea)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/squito/spark fix_backport

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/20623.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #20623
    
----
commit f7a22827694a3aa92e8a7dd20195e2895e86880a
Author: “attilapiros” <pi...@...>
Date:   2018-02-15T19:51:24Z

    [SPARK-23413][UI] Fix sorting tasks by Host / Executor ID at the Stage page
    
    ## What changes were proposed in this pull request?
    
    Fixing exception got at sorting tasks by Host / Executor ID:
    ```
            java.lang.IllegalArgumentException: Invalid sort column: Host
    	at org.apache.spark.ui.jobs.ApiHelper$.indexName(StagePage.scala:1017)
    	at org.apache.spark.ui.jobs.TaskDataSource.sliceData(StagePage.scala:694)
    	at org.apache.spark.ui.PagedDataSource.pageData(PagedTable.scala:61)
    	at org.apache.spark.ui.PagedTable$class.table(PagedTable.scala:96)
    	at org.apache.spark.ui.jobs.TaskPagedTable.table(StagePage.scala:708)
    	at org.apache.spark.ui.jobs.StagePage.liftedTree1$1(StagePage.scala:293)
    	at org.apache.spark.ui.jobs.StagePage.render(StagePage.scala:282)
    	at org.apache.spark.ui.WebUI$$anonfun$2.apply(WebUI.scala:82)
    	at org.apache.spark.ui.WebUI$$anonfun$2.apply(WebUI.scala:82)
    	at org.apache.spark.ui.JettyUtils$$anon$3.doGet(JettyUtils.scala:90)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    	at org.spark_project.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
    	at org.spark_project.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)
    ```
    
    Moreover some refactoring to avoid similar problems by introducing constants for each header name and reusing them at the identification of the corresponding sorting index.
    
    ## How was this patch tested?
    
    Manually:
    
    ![screen shot 2018-02-13 at 18 57 10](https://user-images.githubusercontent.com/2017933/36166532-1cfdf3b8-10f3-11e8-8d32-5fcaad2af214.png)
    
    Author: “attilapiros” <pi...@gmail.com>
    
    Closes #20601 from attilapiros/SPARK-23413.
    
    (cherry picked from commit 1dc2c1d5e85c5f404f470aeb44c1f3c22786bdea)

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20623: [SPARK-23413][UI] Fix sorting tasks by Host / Executor I...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20623
  
    **[Test build #87492 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87492/testReport)** for PR 20623 at commit [`f7a2282`](https://github.com/apache/spark/commit/f7a22827694a3aa92e8a7dd20195e2895e86880a).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20623: [SPARK-23413][UI] Fix sorting tasks by Host / Executor I...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20623
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87492/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20623: [SPARK-23413][UI] Fix sorting tasks by Host / Executor I...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20623
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20623: [SPARK-23413][UI] Fix sorting tasks by Host / Executor I...

Posted by zsxwing <gi...@git.apache.org>.
Github user zsxwing commented on the issue:

    https://github.com/apache/spark/pull/20623
  
    @squito The k8s test passed message is misleading :( The test is still running. Hope we don't break 2.3 build :)


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20623: [SPARK-23413][UI] Fix sorting tasks by Host / Executor I...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/20623
  
    **[Test build #87492 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/87492/testReport)** for PR 20623 at commit [`f7a2282`](https://github.com/apache/spark/commit/f7a22827694a3aa92e8a7dd20195e2895e86880a).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #20623: [SPARK-23413][UI] Fix sorting tasks by Host / Exe...

Posted by squito <gi...@git.apache.org>.
Github user squito closed the pull request at:

    https://github.com/apache/spark/pull/20623


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20623: [SPARK-23413][UI] Fix sorting tasks by Host / Executor I...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20623
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #20623: [SPARK-23413][UI] Fix sorting tasks by Host / Executor I...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/20623
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/925/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org