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

    https://github.com/apache/spark/pull/11249#discussion_r53409427
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/Checkpoint.scala ---
    @@ -41,6 +41,13 @@ class Checkpoint(ssc: StreamingContext, val 
checkpointTime: Time)
       val checkpointDuration = ssc.checkpointDuration
       val pendingTimes = ssc.scheduler.getPendingTimes().toArray
       val sparkConfPairs = ssc.conf.getAll
    +  @transient val recoverableAccuNameToId = ssc.recoverableAccuNameToId
    +
    +  // initialize from ssc.context after SPARK-13051
    +  val trackedAccs: Array[AccumulableCheckpoint[_, _]] = 
Accumulators.originals.filter(ele =>
    --- End diff --
    
    No, `readObject` method of Accumulable is overrided, and some "hacky" code 
is added: the value of Accumulable will explicitly be set to 0 when 
deserializing. That's why we need this class. I also put the reason on comment.


---
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