Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18887#discussion_r141086280
  
    --- Diff: 
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala ---
    @@ -243,42 +282,38 @@ private[history] class FsHistoryProvider(conf: 
SparkConf, clock: Clock)
     
       override def getAppUI(appId: String, attemptId: Option[String]): 
Option[LoadedAppUI] = {
         try {
    -      applications.get(appId).flatMap { appInfo =>
    -        appInfo.attempts.find(_.attemptId == attemptId).flatMap { attempt 
=>
    +      val appInfo = load(appId)
    +      appInfo.attempts
    +        .find { attempt => attempt.info.attemptId == attemptId }
    --- End diff --
    
    nit: `_.info.attemptId == attemptId`


---

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

Reply via email to