You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 03:59:38 UTC

[jira] [Updated] (SPARK-21715) History Server should not respond history page html content multiple times for only one http request

     [ https://issues.apache.org/jira/browse/SPARK-21715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon updated SPARK-21715:
---------------------------------
    Labels: bulk-closed  (was: )

> History Server should not respond history page html content multiple times for only one http request
> ----------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-21715
>                 URL: https://issues.apache.org/jira/browse/SPARK-21715
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.1.0, 2.2.0
>            Reporter: Ye Zhou
>            Priority: Minor
>              Labels: bulk-closed
>         Attachments: Performance.png, ResponseContent.png
>
>
> UI looks fine for the home page. But we check the performance for each individual components, we found that there are three picture downloading requests which takes much longer time than expected: favicon.ico, sort_both.png, sort_desc.png. 
> These are the list of the request address: http://hostname:port/favicon.ico, http://hostname:port/images/sort_both.png, http://hostname:port/images/sort_desc.png. Later if user clicks on the head of the table to sort the column, another request for http://hostname:port/images/sort_asc.png will be sent.
> Browsers will send request for favicon.ico in default. And all these three sort_xxx.png are the default behavior in dataTables jQuery plugin.
> Spark history server will start several handlers to handle http request. But none of these requests are getting correctly handled and they are all triggering the history server to respond the history page html content. As we can find from the screenshot, the response data type are all "text/html".
> To solve this problem, We need to download those images dir from here: https://github.com/DataTables/Plugins/tree/master/integration/bootstrap/images. Put the folder under "core/src/main/resources/org/apache/spark/ui/static/". We also need to modify the dataTables.bootstrap.css to get the correct images location. For favicon.ico downloading request, we need to add one line in the html header to disable the downloading. 
> I can post a pull request if this is the correct way to fix this. I have tried it which works fine.
> !https://issues.apache.org/jira/secure/attachment/12881534/Performance.png!
> !https://issues.apache.org/jira/secure/attachment/12881535/ResponseContent.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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