asmitalim commented on code in PR #44080:
URL: https://github.com/apache/spark/pull/44080#discussion_r1412702745
##########
core/src/main/scala/org/apache/spark/scheduler/AsyncEventQueue.scala:
##########
@@ -136,7 +139,9 @@ private class AsyncEventQueue(
*/
private[scheduler] def stop(): Unit = {
if (!started.get()) {
- throw new IllegalStateException(s"Attempted to stop $name that has not
yet started!")
+ throw new SparkIllegalStateException(
+ errorClass = "SCHEDULER_ASYNC_STOP",
+ messageParameters = Map("name" -> name.toString))
}
Review Comment:
Do you suggest using an INTERNAL_ERROR_SCHEDULER class for this instead?
There are similar INTERNAL_ERROR classes used for core
--
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]