You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ma...@apache.org on 2015/05/15 07:23:45 UTC

[3/3] 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/6ef70b8e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/6ef70b8e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/6ef70b8e

Branch: refs/heads/0.7.1-staging
Commit: 6ef70b8e847e9420889218243a58be74115c019d
Parents: 2439b9b
Author: Shao Feng, Shi <sh...@ebay.com>
Authored: Thu May 14 15:24:14 2015 +0800
Committer: Shao Feng, Shi <sh...@ebay.com>
Committed: Thu May 14 15:24:14 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/6ef70b8e/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 05031b9..e0f8a99 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.");
             }
         }