[ 
https://issues.apache.org/jira/browse/SPARK-43947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacek Laskowski updated SPARK-43947:
------------------------------------
    Summary: Incorrect SparkException when missing config in resources in 
Stage-Level Scheduling  (was: Incorrect SparkException when missing amount in 
resources in Stage-Level Scheduling)

> Incorrect SparkException when missing config in resources in Stage-Level 
> Scheduling
> -----------------------------------------------------------------------------------
>
>                 Key: SPARK-43947
>                 URL: https://issues.apache.org/jira/browse/SPARK-43947
>             Project: Spark
>          Issue Type: Bug
>          Components: Scheduler
>    Affects Versions: 3.4.0
>            Reporter: Jacek Laskowski
>            Priority: Minor
>
> [ResourceUtils.listResourceIds|https://github.com/apache/spark/blob/807abf9c53ee8c1c7ef69646ebd8a266f60d5580/core/src/main/scala/org/apache/spark/resource/ResourceUtils.scala#L152-L155]
>  can throw an exception for any missing config, not just `amount`.
> {code:scala}
>       val index = key.indexOf('.')
>       if (index < 0) {
>         throw new SparkException(s"You must specify an amount config for 
> resource: $key " +
>           s"config: $componentName.$RESOURCE_PREFIX.$key")
>       }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to