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

    https://github.com/apache/spark/pull/1476#discussion_r15124263
  
    --- Diff: core/src/main/scala/org/apache/spark/executor/TaskMetrics.scala 
---
    @@ -75,7 +75,9 @@ class TaskMetrics extends Serializable {
       /**
        * If this task reads from shuffle output, metrics on getting shuffle 
data will be collected here
        */
    -  var shuffleReadMetrics: Option[ShuffleReadMetrics] = None
    +  private var _shuffleReadMetrics: Option[ShuffleReadMetrics] = None
    +
    +  def shuffleReadMetrics = _shuffleReadMetrics
    --- End diff --
    
    Yes, I recognize that, but even with a private setter we can still go ahead 
and change the fields if we wanted to, so it's not really immutable. Not a huge 
deal.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to