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

    https://github.com/apache/spark/pull/2871#discussion_r19480010
  
    --- Diff: 
core/src/main/scala/org/apache/spark/broadcast/TorrentBroadcast.scala ---
    @@ -157,14 +161,12 @@ private[spark] class TorrentBroadcast[T: 
ClassTag](obj: T, id: Long)
         out.defaultWriteObject()
       }
     
    -  /** Used by the JVM when deserializing this object. */
    -  private def readObject(in: ObjectInputStream): Unit = 
Utils.tryOrIOException {
    -    in.defaultReadObject()
    +  private def readBroadcastBlock(): T = Utils.tryOrIOException {
    --- End diff --
    
    Hmm -- thanks for the clarification. I've kept the `tryOrIOException` for 
now as `getValue` hasn't thrown exceptions so far and we are introducing new 
behavior. We can revisit this at some point if it makes stack traces harder to 
read.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to