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

    https://github.com/apache/spark/pull/4821#discussion_r25628525
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/EventLoggingListener.scala ---
    @@ -111,19 +119,17 @@ private[spark] class EventLoggingListener(
             hadoopDataStream.get
           }
     
    -    val compressionCodec =
    -      if (shouldCompress) {
    -        Some(CompressionCodec.createCodec(sparkConf))
    -      } else {
    -        None
    -      }
    -
    -    fileSystem.setPermission(path, LOG_FILE_PERMISSIONS)
    -    val logStream = initEventLog(new BufferedOutputStream(dstream, 
outputBufferSize),
    -      compressionCodec)
    -    writer = Some(new PrintWriter(logStream))
    -
    -    logInfo("Logging events to %s".format(logPath))
    +    try {
    +      val cstream = 
compressionCodec.map(_.compressedOutputStream(dstream)).getOrElse(dstream)
    +      val bstream = new BufferedOutputStream(cstream, outputBufferSize)
    +      fileSystem.setPermission(path, LOG_FILE_PERMISSIONS)
    +      writer = Some(new PrintWriter(bstream))
    --- End diff --
    
    again, I'm just trying to preserve functionality here. If it's a real issue 
I would prefer to fix it separately, but in this patch I'm trying to minimize 
the scope of the changes.


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