dongjoon-hyun commented on a change in pull request #26611: [SPARK-29939][CORE] 
Add a conf for CompressionCodec for Ser/Deser of MapOutputStatus
URL: https://github.com/apache/spark/pull/26611#discussion_r348644566
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/MapOutputTracker.scala
 ##########
 @@ -902,8 +902,13 @@ private[spark] object MapOutputTracker extends Logging {
     // the contents don't have to be copied to the new buffer.
     val out = new ApacheByteArrayOutputStream()
     out.write(DIRECT)
-    val codec = CompressionCodec.createCodec(conf, "zstd")
-    val objOut = new ObjectOutputStream(codec.compressedOutputStream(out))
+    val shouldCompress = conf.get(MAP_STATUS_COMPRESS)
+    val codec = if (shouldCompress) {
+      Some(CompressionCodec.createCodec(conf, 
conf.get(IO_COMPRESSION_CODEC.key, "zstd")))
 
 Review comment:
   This is a regression, @Ngone51 . IO_COMPRESSION_CODEC is `lz4` by default.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to