dongjoon-hyun commented on a change in pull request #30352:
URL: https://github.com/apache/spark/pull/30352#discussion_r524482682



##########
File path: 
resource-managers/mesos/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosClusterScheduler.scala
##########
@@ -374,6 +389,16 @@ private[spark] class MesosClusterScheduler(
     s"${frameworkId}-${desc.submissionId}${retries}"
   }
 
+  private[mesos] def getDriverPriority(desc: MesosDriverDescription): Float = {
+    val queueName =
+      desc.conf.get("spark.mesos.dispatcher.queue", 
config.DISPATCHER_QUEUE.defaultValueString)
+    if (queueName != config.DISPATCHER_QUEUE.defaultValueString) {

Review comment:
       Since we use this twice, shall we simplify a little like the following?
   ```scala
   val defaultQueueName = config.DISPATCHER_QUEUE.defaultValueString
   val queueName = desc.conf.get("spark.mesos.dispatcher.queue", 
defaultQueueName)
   if (queueName != defaultQueueName) {
   ```




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to