viirya commented on code in PR #52620:
URL: https://github.com/apache/spark/pull/52620#discussion_r2459072601


##########
core/src/main/scala/org/apache/spark/SparkContext.scala:
##########
@@ -3155,6 +3155,11 @@ object SparkContext extends Logging {
   /** Separator of tags in SPARK_JOB_TAGS property */
   private[spark] val SPARK_JOB_TAGS_SEP = ","
 
+  def isDriver(executorId: String): Boolean = {
+    // Check for null to match the behavior of executorId == DRIVER_IDENTIFIER
+    executorId != null && executorId.startsWith(DRIVER_IDENTIFIER)
+  }

Review Comment:
   This looks like only used in test? Maybe we don't need to it to 
`SparkContext` but just in the test?



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