Ngone51 commented on a change in pull request #27693: [SPARK-30947][CORE] Don't 
log accelerate resources when it's empty
URL: https://github.com/apache/spark/pull/27693#discussion_r383898975
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/resource/ResourceProfile.scala
 ##########
 @@ -194,7 +194,9 @@ class ResourceProfile(
       throw new SparkException("No executor resource configs were not 
specified for the " +
         s"following task configs: ${taskResourcesToCheck.keys.mkString(",")}")
     }
-    logInfo(s"Limiting resource is $limitingResource at $taskLimit tasks per 
executor")
+    if (limitingResource.nonEmpty) {
+      logInfo(s"Limiting resource is $limitingResource at $taskLimit tasks per 
executor")
 
 Review comment:
   This result in *20/02/25 21:47:55 INFO ResourceProfile: Limiting resource is 
 at -1 tasks per executor* when `shouldCheckExecCores` is `false`.

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


With regards,
Apache Git Services

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

Reply via email to