[ 
https://issues.apache.org/jira/browse/SPARK-4595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14250432#comment-14250432
 ] 

Josh Rosen commented on SPARK-4595:
-----------------------------------

It looks like this bug was introduced in 
https://github.com/apache/spark/pull/2432, which moved the 
{{MetricsSystem.start()}} call from SparkEnv to SparkContext, which allowed it 
to take place after the web UI had started.  That patch addressed SPARK-3377 
and the fix was only applied to 1.2.0, so this looks like a 1.2.0 regression.

> Spark MetricsServlet is not worked because of initialization ordering
> ---------------------------------------------------------------------
>
>                 Key: SPARK-4595
>                 URL: https://issues.apache.org/jira/browse/SPARK-4595
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.2.0
>            Reporter: Saisai Shao
>            Assignee: Saisai Shao
>            Priority: Blocker
>             Fix For: 1.3.0, 1.2.1
>
>
> Web UI is initialized before MetricsSystem is started, at that time 
> MetricsSerlvet is not yet created, which will make MetricsServlet fail to 
> register  into web UI. 
> Instead MetricsServlet handler should be added to the web UI after 
> MetricsSystem is started.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to