vinodkc commented on code in PR #41746:
URL: https://github.com/apache/spark/pull/41746#discussion_r1259168447
##########
core/src/main/scala/org/apache/spark/SparkContext.scala:
##########
@@ -585,6 +593,12 @@ class SparkContext(config: SparkConf) extends Logging {
_dagScheduler = new DAGScheduler(this)
_heartbeatReceiver.ask[Boolean](TaskSchedulerIsSet)
+ // After initialisation of _schedulerBackend, if
EXECUTOR_ALLOW_SYNC_LOG_LEVEL is true and
+ // SPARK_LOG_LEVEL is already set, sync the new log level with all the
current executors.
+ if (_conf.get(EXECUTOR_ALLOW_SYNC_LOG_LEVEL)) {
+ _conf.get(SPARK_LOG_LEVEL).foreach( logLevel =>
_schedulerBackend.updateLogLevel(logLevel))
Review Comment:
Done
##########
core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala:
##########
@@ -653,6 +660,12 @@ class CoarseGrainedSchedulerBackend(scheduler:
TaskSchedulerImpl, val rpcEnv: Rp
}
}
+ override def updateLogLevel(logLevel: String): Unit = {
+ if (driverEndpoint != null) {
+ driverEndpoint.ask[Boolean](UpdateExecutorsLogLevel(logLevel))
+ }
Review Comment:
Done
--
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]