[SPARK-14889][Spark Core] scala.MatchError: NONE (of class scala.Enumeration) when spark.scheduler.mode=NONE#12666
[SPARK-14889][Spark Core] scala.MatchError: NONE (of class scala.Enumeration) when spark.scheduler.mode=NONE#12666sbcd90 wants to merge 1 commit intoapache:masterfrom
Conversation
There was a problem hiding this comment.
In TaskSchedulerImpl they use: "Unrecognized spark.scheduler.mode: $schedulingModeConf" so I'd change it to "Unsupported spark.scheduler.mode: $schedulingMode".
I'm also not sure about the other places like https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala#L133-L138. I know that the change would not let it be executed with NONE or unsupported scheduling modes, but when Pool changes...just thinking aloud.
9ef0bae to
1c524ce
Compare
|
Hi @jaceklaskowski , Thanks for your review. I think it is safe that we make the changes at both the places. |
There was a problem hiding this comment.
Use something like IllegalArgumentException
…eration) when spark.scheduler.mode=NONE
1c524ce to
4658936
Compare
|
Hi @srowen , changed to |
|
LGTM pending Jenkins. |
|
Test build #2883 has finished for PR 12666 at commit
|
|
Jenkins retest this please |
|
Test build #56986 has finished for PR 12666 at commit
|
|
Merged to master |
….Enumeration) when spark.scheduler.mode=NONE apache#12666
What changes were proposed in this pull request?
Handling exception for the below mentioned issue
The exception now looks like
How was this patch tested?
manual tests