guangxuCheng commented on a change in pull request #585: KYLIN-3936 MR/Spark
task will still run after the job is stopped
URL: https://github.com/apache/kylin/pull/585#discussion_r277945700
##########
File path:
core-job/src/main/java/org/apache/kylin/job/execution/ExecutableManager.java
##########
@@ -414,6 +414,22 @@ public void pauseJob(String jobId) {
return;
}
+ if (!(job.getStatus() == ExecutableState.READY
+ || job.getStatus() == ExecutableState.RUNNING)) {
+ logger.warn("The status of job " + jobId + " is " +
job.getStatus().toString()
Review comment:
Add IllegalStateException
----------------------------------------------------------------
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]
With regards,
Apache Git Services