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

    https://github.com/apache/spark/pull/8880#discussion_r75551862
  
    --- Diff: 
core/src/main/scala/org/apache/spark/serializer/SerializerManager.scala ---
    @@ -103,6 +107,20 @@ private[spark] class 
SerializerManager(defaultSerializer: Serializer, conf: Spar
       }
     
       /**
    +   * Wrap an input stream for encryption if shuffle encryption is enabled
    +   */
    +  def wrapForEncryption(s: InputStream): InputStream = {
    --- End diff --
    
    Doing this would also simplify other interfaces, e.g., you wouldn't need 
the dummy `EncryptStream` classes in a bunch of tests because 
`DiskBlockObjectWriter` would just take a generic `wrapStream` function instead 
of separate ones for compression and encryption.


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