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

    https://github.com/apache/spark/pull/11249#discussion_r53417927
  
    --- 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
    --- End diff --
    
    I may not describe it clearly, sorry. It used to be inside of `val 
trackedAccs = ...`, but it caused serialization issue: it try to serializate 
StreamingContext when doing checkpoint. So I move it out of `trackedAccs ` 
definition explicitly to break the dependency of `ssc`.


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