gengliangwang commented on a change in pull request #32189:
URL: https://github.com/apache/spark/pull/32189#discussion_r614534750



##########
File path: 
core/src/main/scala/org/apache/spark/deploy/history/ApplicationCache.scala
##########
@@ -156,18 +156,18 @@ 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.mkString}")

Review comment:
       Let's put `$appId/${attemptId.mkString}` to a lazy val
   ```
   lazy val application = s"$appId/${attemptId.mkString}"
   ```
   to reduce duplciate code.




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