Github user squito commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7753#discussion_r45929033
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/EventLoggingListener.scala ---
    @@ -205,7 +231,14 @@ private[spark] class EventLoggingListener(
       override def onBlockUpdated(event: SparkListenerBlockUpdated): Unit = {}
     
       // No-op because logging every update would be overkill
    -  override def onExecutorMetricsUpdate(event: 
SparkListenerExecutorMetricsUpdate): Unit = { }
    +  override def onExecutorMetricsUpdate(event: 
SparkListenerExecutorMetricsUpdate): Unit = {
    +    // In order to avoid the logged event consumes too much storage size, 
taskMetrics would not
    +    // be logged into event log file currently
    +    val lightEvent = SparkListenerExecutorMetricsUpdate(
    +      event.execId, event.executorMetrics, Seq.empty)
    +    executorIdToLatestMetrics.update(lightEvent.execId, lightEvent)
    --- End diff --
    
    nit: more idiomatic scala to write `map.update(key,value)` with `map(key) = 
value` (scala syntax sugar for `update` method)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to