tgravescs commented on a change in pull request #26682: [SPARK-29306][CORE] 
Stage Level Sched: Executors need to track what ResourceProfile they are 
created with 

 File path: 
 @@ -272,11 +272,16 @@ class CoarseGrainedSchedulerBackend(scheduler: 
TaskSchedulerImpl, val rpcEnv: Rp
         removeWorker(workerId, host, message)
-      case RetrieveSparkAppConfig =>
+      case RetrieveSparkAppConfig(resourceProfileId) =>
+        // note this will be updated in later prs to get the ResourceProfile 
from a
+        // ResourceProfileManager that matches the resource profile id
+        // for now just use default profile
+        val rp = ResourceProfile.getOrCreateDefaultProfile(conf)
         val reply = SparkAppConfig(
-          Option(delegationTokens.get()))
+          Option(delegationTokens.get()),
+          rp)
 Review comment:
   They can but its really just extra code and an extra code path to have to 
maintain.   I specifically removed the old code that was generating the default 
profile on the executor side from the configs because the driver already 
calculated it and there isn't a reason to have 2 paths to calculate it.  This 
way it all works the same. Was there something specific here you are concerned 

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:

With regards,
Apache Git Services

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to