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

    https://github.com/apache/spark/pull/204#discussion_r11395293
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/ReplayListenerBus.scala ---
    @@ -98,7 +121,33 @@ private[spark] class ReplayListenerBus(conf: SparkConf) 
extends SparkListenerBus
             compressStream.foreach(_.close())
           }
         }
    -    fileSystem.close()
    +
    +    replayed = true
         true
       }
    +
    +  /** Stop the file system. */
    +  def stop() {
    +    fileSystem.close()
    +  }
    +
    +  /** If a compression codec is specified, wrap the given stream in a 
compression stream. */
    +  private def wrapForCompression(stream: InputStream): InputStream = {
    +    compressionCodec.map(_.compressedInputStream(stream)).getOrElse(stream)
    +  }
    +
    +  /** Return a list of paths representing files found in the given 
directory. */
    +  private def getFilePaths(logDir: String, fileSystem: FileSystem): 
Array[Path] = {
    +    val path = new Path(logDir)
    +    if (!fileSystem.exists(path) || !fileSystem.getFileStatus(path).isDir) 
{
    +      logWarning("Log path provided is not a valid directory: 
%s".format(logDir))
    +      return Array[Path]()
    +    }
    +    val logStatus = fileSystem.listStatus(path)
    --- End diff --
    
    We should probably catch exceptions here also and just skip that directory.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to