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

    https://github.com/apache/spark/pull/1222#discussion_r21582597
  
    --- Diff: 
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala ---
    @@ -221,33 +238,87 @@ private[history] class FsHistoryProvider(conf: 
SparkConf) extends ApplicationHis
         }
       }
     
    -  private def createReplayBus(logDir: FileStatus): (ReplayListenerBus, 
ApplicationEventListener) = {
    -    val path = logDir.getPath()
    -    val elogInfo = EventLoggingListener.parseLoggingInfo(path, fs)
    -    val replayBus = new ReplayListenerBus(elogInfo.logPaths, fs, 
elogInfo.compressionCodec)
    -    val appListener = new ApplicationEventListener
    -    replayBus.addListener(appListener)
    -    (replayBus, appListener)
    +  /**
    +   * Replays the event data in the given log, and returns the application 
information.
    +   */
    +  private def replay(logPath: FileStatus, bus: ReplayListenerBus): 
FsApplicationHistoryInfo = {
    +    val (logInput, sparkVersion) =
    +      if (isLegacyLogDirectory(logPath)) {
    +        openOldLog(logPath.getPath())
    --- End diff --
    
    `openLegacyEventLog`?


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