cloud-fan commented on code in PR #53914:
URL: https://github.com/apache/spark/pull/53914#discussion_r2731667637


##########
core/src/main/scala/org/apache/spark/executor/Executor.scala:
##########
@@ -628,15 +677,37 @@ private[spark] class Executor(
     override def run(): Unit = {
 
       // Classloader isolation
+      // We need to retry the cache lookup if the session was evicted between 
get() and acquire().
+      // This can happen when the cache is full and another task triggers 
eviction.
       val isolatedSession = taskDescription.artifacts.state match {
         case Some(jobArtifactState) =>
-          isolatedSessionCache.get(jobArtifactState.uuid, () => 
newSessionState(jobArtifactState))
-        case _ => defaultSessionState
+          var session: IsolatedSessionState = null

Review Comment:
   somehow I read your comment as "put this in a separate thread".... Let me 
refactor it now :)



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

To unsubscribe, e-mail: [email protected]

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