yikf commented on a change in pull request #31015:
URL: https://github.com/apache/spark/pull/31015#discussion_r553348680
##########
File path: core/src/main/scala/org/apache/spark/ui/jobs/AllJobsPage.scala
##########
@@ -277,15 +277,17 @@ private[ui] class AllJobsPage(parent: JobsTab, store:
AppStatusStore) extends We
s"${appSummary.numCompletedJobs}, only showing ${completedJobs.size}"
}
+ // SPARK-33991 Avoid enumeration conversion error.
val schedulingMode = store.environmentInfo().sparkProperties.toMap
.get(SCHEDULER_MODE.key)
- .map { mode => SchedulingMode.withName(mode).toString }
+ .map { mode =>
SchedulingMode.withName(mode.toUpperCase(Locale.ROOT)).toString }
.getOrElse("Unknown")
val summary: NodeSeq =
<div>
<ul class="list-unstyled">
<li>
+
Review comment:
But an enumerated conversion error occurred with Spark when I set the
value of this spark.scheduler.mode to 'fair'.
----------------------------------------------------------------
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]