You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/03/28 18:09:28 UTC

[GitHub] [spark] zsxwing commented on a change in pull request #24229: [SPARK-27275][CORE] Fix potential corruption in EncryptedMessage.transferTo (2.4)

zsxwing commented on a change in pull request #24229: [SPARK-27275][CORE] Fix potential corruption in EncryptedMessage.transferTo (2.4)
URL: https://github.com/apache/spark/pull/24229#discussion_r270135031
 
 

 ##########
 File path: common/network-common/src/main/java/org/apache/spark/network/crypto/TransportCipher.java
 ##########
 @@ -84,7 +85,8 @@ SecretKeySpec getKey() {
     return outIv;
   }
 
-  private CryptoOutputStream createOutputStream(WritableByteChannel ch) throws IOException {
+  @VisibleForTesting
 
 Review comment:
   This is package private. We usually use this to expose methods for junit. It's not worth to encapsulate a class just for unit tests.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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