LuciferYang commented on a change in pull request #35566:
URL: https://github.com/apache/spark/pull/35566#discussion_r809721635
##########
File path: core/src/main/scala/org/apache/spark/resource/ResourceUtils.scala
##########
@@ -385,8 +385,6 @@ private[spark] object ResourceUtils extends Logging {
val pluginClasses = sparkConf.get(RESOURCES_DISCOVERY_PLUGIN) :+
discoveryScriptPlugin
val resourcePlugins =
Utils.loadExtensions(classOf[ResourceDiscoveryPlugin], pluginClasses,
sparkConf)
- // apply each plugin until one of them returns the information for this
resource
- var riOption: Optional[ResourceInformation] = Optional.empty()
Review comment:
SPARK-30689 add `riOption` but it was not used because there is a
definition with the same name in `resourcePlugins.foreach` loop
--
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]