LuciferYang commented on code in PR #49413: URL: https://github.com/apache/spark/pull/49413#discussion_r1916036819
########## core/src/main/scala/org/apache/spark/TaskContextImpl.scala: ########## @@ -82,6 +83,13 @@ private[spark] class TaskContextImpl( // If defined, the corresponding task has been killed and this option contains the reason. @volatile private var reasonIfKilled: Option[String] = None + // The pending interruption request, which is blocked by uninterruptible resource creation. + // Should be protected by `TaskContext.synchronized`. + private var pendingInterruptRequest: Option[(Option[Thread], String)] = None + + // Whether this task is able to be interrupted. Should be protected by `TaskContext.synchronized`. Review Comment: Are you referring to `@volatile`? -- 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]
