dongjoon-hyun commented on a change in pull request #31882:
URL: https://github.com/apache/spark/pull/31882#discussion_r597366145



##########
File path: 
core/src/main/scala/org/apache/spark/deploy/history/ApplicationCache.scala
##########
@@ -156,18 +156,19 @@ private[history] class ApplicationCache(
    */
   @throws[NoSuchElementException]
   private def loadApplicationEntry(appId: String, attemptId: Option[String]): 
CacheEntry = {
-    logDebug(s"Loading application Entry $appId/$attemptId")
+    logDebug(s"Loading application Entry $appId" + attemptId.map { id => 
s"/$id" }.getOrElse(""))

Review comment:
       If you want to change `Some(XX)`, shall we try to use `mkString` simply?
   ```scala
   scala> Seq(Some("attempt1"), None).foreach { attemptId => 
println(s"appId/$attemptId") }
   appId/Some(attempt1)
   appId/None
   
   scala> Seq(Some("attempt1"), None).foreach { attemptId => 
println(s"appId/${attemptId.mkString}") }
   appId/attempt1
   appId/
   ```




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



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

Reply via email to