[jira] [Commented] (SPARK-33991) Repair enumeration conversion error for AllJobsPage

2021-01-04 Thread Felix Yi (Jira)


[ 
https://issues.apache.org/jira/browse/SPARK-33991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17258201#comment-17258201
 ] 

Felix Yi commented on SPARK-33991:
--

I saw that the #org.apache.spark.scheduler.TaskSchedulerImpl class convert the 
spark. scheduler.mode value to uppercase, so I think it should be converted in 
AllJobsPage as well.
{code:java}
val schedulingMode: SchedulingMode =
  try {
SchedulingMode.withName(schedulingModeConf.toUpperCase(Locale.ROOT))
  } catch {
case e: java.util.NoSuchElementException =>
  throw new SparkException(s"Unrecognized $SCHEDULER_MODE_PROPERTY: 
$schedulingModeConf")
  }
{code}

> Repair enumeration conversion error for AllJobsPage
> ---
>
> Key: SPARK-33991
> URL: https://issues.apache.org/jira/browse/SPARK-33991
> Project: Spark
>  Issue Type: Bug
>  Components: Spark Core
>Affects Versions: 3.0.0
>Reporter: Felix Yi
>Priority: Critical
>
> For AllJobsPage class, AllJobsPage gets the schedulingMode of enumerated type 
> by loading the spark.scheduler.mode configuration from Sparkconf, but an 
> enumeration conversion error occurs when I set the value of this 
> configuration to lowercase.
> The reason for this problem is that the value of the SchedulingMode 
> enumeration class is uppercase, which occurs when I configure spark. 
> scheduler.mode to be lowercase.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-33991) Repair enumeration conversion error for AllJobsPage

2021-01-04 Thread Apache Spark (Jira)


[ 
https://issues.apache.org/jira/browse/SPARK-33991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17258228#comment-17258228
 ] 

Apache Spark commented on SPARK-33991:
--

User 'FelixYik' has created a pull request for this issue:
https://github.com/apache/spark/pull/31015

> Repair enumeration conversion error for AllJobsPage
> ---
>
> Key: SPARK-33991
> URL: https://issues.apache.org/jira/browse/SPARK-33991
> Project: Spark
>  Issue Type: Bug
>  Components: Spark Core
>Affects Versions: 3.0.0
>Reporter: Felix Yi
>Priority: Critical
>
> For AllJobsPage class, AllJobsPage gets the schedulingMode of enumerated type 
> by loading the spark.scheduler.mode configuration from Sparkconf, but an 
> enumeration conversion error occurs when I set the value of this 
> configuration to lowercase.
> The reason for this problem is that the value of the SchedulingMode 
> enumeration class is uppercase, which occurs when I configure spark. 
> scheduler.mode to be lowercase.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org