falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajayyad...@apache.org
Subject falcon git commit: FALCON-1782 Client returns FalconWebException instead of the expected…
Date Fri, 29 Jan 2016 15:08:00 GMT
Repository: falcon
Updated Branches:
  refs/heads/0.9 634577c3d -> 12e56b644


FALCON-1782 Client returns FalconWebException instead of the expected…

testing :

$ bin/falcon entity -type process -name process1 -properties falcon.scheduler:native -schedule
ERROR: Bad Request;default/Entity process1 is already scheduled on configured workflow engine.

Author: Praveen Adlakha <adlakha.praveen@gmail.com>

Reviewers: Ajay Yadava<ajayyadava@apache.org>, Sandeep Samudrala <sandysmdl@gmail.com>

Closes #18 from PraveenAdlakha/FALCON-1782


Project: http://git-wip-us.apache.org/repos/asf/falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/falcon/commit/12e56b64
Tree: http://git-wip-us.apache.org/repos/asf/falcon/tree/12e56b64
Diff: http://git-wip-us.apache.org/repos/asf/falcon/diff/12e56b64

Branch: refs/heads/0.9
Commit: 12e56b644da1a21f1f64e27c562c22adb3beee95
Parents: 634577c
Author: Praveen Adlakha <adlakha.praveen@gmail.com>
Authored: Fri Jan 29 20:11:42 2016 +0530
Committer: Ajay Yadava <ajaynsit@gmail.com>
Committed: Fri Jan 29 20:31:21 2016 +0530

----------------------------------------------------------------------
 CHANGES.txt                                                      | 2 ++
 .../apache/falcon/resource/AbstractSchedulableEntityManager.java | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/12e56b64/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index fb0d251..3ab7726 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -108,6 +108,8 @@ Release Version: 0.9
   OPTIMIZATIONS
 
   BUG FIXES
+    FALCON-1782 Client returns FalconWebException instead of the expected error message(Praveen
Adlakha via Ajay Yadava)
+
     FALCON-1747 Falcon instance status listing is throwing error message (Peeyush Bishnoi)
 
     FALCON-1758 APIs fail when oozie workflow entries are deleted (Pavan Kolamuri via Pallavi
Rao)

http://git-wip-us.apache.org/repos/asf/falcon/blob/12e56b64/prism/src/main/java/org/apache/falcon/resource/AbstractSchedulableEntityManager.java
----------------------------------------------------------------------
diff --git a/prism/src/main/java/org/apache/falcon/resource/AbstractSchedulableEntityManager.java
b/prism/src/main/java/org/apache/falcon/resource/AbstractSchedulableEntityManager.java
index 8d7a5df..d4c292e 100644
--- a/prism/src/main/java/org/apache/falcon/resource/AbstractSchedulableEntityManager.java
+++ b/prism/src/main/java/org/apache/falcon/resource/AbstractSchedulableEntityManager.java
@@ -101,9 +101,9 @@ public abstract class AbstractSchedulableEntityManager extends AbstractInstanceM
             }
             LOG.info("Memory lock obtained for {} by {}", entityObj.toShortString(), Thread.currentThread().getName());
             WorkflowEngineFactory.getWorkflowEngine(entityObj, properties).schedule(entityObj,
skipDryRun, properties);
-        } catch (Exception e) {
+        } catch (Throwable e) {
             LOG.error("Entity schedule failed for " + type + ": " + entity, e);
-            throw FalconWebException.newAPIException("Entity schedule failed for " + type
+ ": " + entity);
+            throw FalconWebException.newAPIException(e);
         } finally {
             if (entityObj != null) {
                 memoryLocks.releaseLock(entityObj);


Mime
View raw message