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

    https://github.com/apache/spark/pull/6625#discussion_r31677779
  
    --- Diff: 
core/src/main/scala/org/apache/spark/serializer/SerializationDebugger.scala ---
    @@ -220,6 +255,27 @@ private[spark] object SerializationDebugger extends 
Logging {
         override def writeByte(i: Int): Unit = {}
       }
     
    +  /** An output stream that emulates /dev/null */
    +  private class NullOutputStream extends OutputStream {
    +    override def write(b: Int) { }
    +  }
    +
    +  /**
    +   * A dummy [[ObjectOutputStream]] that saves the list of objects written 
to it and returns
    +   * them through `outputArray`.
    --- End diff --
    
    can you expand on this a little? e.g. why pass it null output stream, what 
is it for, why we need to extend `ObjectOutputStream` etc.


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