You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/05/27 06:34:56 UTC

[31/50] [abbrv] incubator-kylin git commit: KYLIN-765 When a cube job is failed, still be possible to submit a new job

KYLIN-765 When a cube job is failed, still be possible to submit a new job


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/c00f344c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/c00f344c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/c00f344c

Branch: refs/heads/0.8.0
Commit: c00f344cc894cc493c35214e57222ed2636a606e
Parents: 7431c7e
Author: Shao Feng, Shi <sh...@ebay.com>
Authored: Thu May 14 15:24:14 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Wed May 27 12:24:38 2015 +0800

----------------------------------------------------------------------
 server/src/main/java/org/apache/kylin/rest/service/JobService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/c00f344c/server/src/main/java/org/apache/kylin/rest/service/JobService.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/kylin/rest/service/JobService.java b/server/src/main/java/org/apache/kylin/rest/service/JobService.java
index 7c96801..13d51a9 100644
--- a/server/src/main/java/org/apache/kylin/rest/service/JobService.java
+++ b/server/src/main/java/org/apache/kylin/rest/service/JobService.java
@@ -122,7 +122,7 @@ public class JobService extends BasicService {
 
         final List<CubingJob> cubingJobs = listAllCubingJobs(cube.getName(), null, EnumSet.allOf(ExecutableState.class));
         for (CubingJob job : cubingJobs) {
-            if (job.getStatus() == ExecutableState.READY || job.getStatus() == ExecutableState.RUNNING) {
+            if (job.getStatus() == ExecutableState.READY || job.getStatus() == ExecutableState.RUNNING || job.getStatus() == ExecutableState.ERROR) {
                 throw new JobException("The cube " + cube.getName() + " has running job(" + job.getId() + ") please discard it and try again.");
             }
         }