You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@falcon.apache.org by aj...@apache.org on 2015/05/07 07:56:18 UTC

falcon git commit: FALCON-75 Falcon CLI for deleting entities should inform user if entity does not exist. Contributed by Ajay Yadava

Repository: falcon
Updated Branches:
  refs/heads/master 0015a3b76 -> 9da286574


FALCON-75 Falcon CLI for deleting entities should inform user if entity does not exist. Contributed by Ajay Yadava


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

Branch: refs/heads/master
Commit: 9da286574271e6a20af5777ef3b1c6cdd167dd3e
Parents: 0015a3b
Author: Ajay Yadava <aj...@gmail.com>
Authored: Thu May 7 11:24:07 2015 +0530
Committer: Ajay Yadava <aj...@gmail.com>
Committed: Thu May 7 11:24:07 2015 +0530

----------------------------------------------------------------------
 CHANGES.txt                                                       | 2 ++
 .../falcon/resource/proxy/SchedulableEntityManagerProxy.java      | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/9da28657/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index cdfe492..8fe1963 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -6,6 +6,8 @@ Trunk (Unreleased)
   NEW FEATURES
 
   IMPROVEMENTS
+    FALCON-75 Falcon CLI for deleting entities should inform user if entity does not exist(Ajay Yadava)
+
     FALCON-1127 Falcon entity status is submitted when corresponding Bundle
     is runningwitherror(Pallavi Rao via Suhas Vasu)
 

http://git-wip-us.apache.org/repos/asf/falcon/blob/9da28657/prism/src/main/java/org/apache/falcon/resource/proxy/SchedulableEntityManagerProxy.java
----------------------------------------------------------------------
diff --git a/prism/src/main/java/org/apache/falcon/resource/proxy/SchedulableEntityManagerProxy.java b/prism/src/main/java/org/apache/falcon/resource/proxy/SchedulableEntityManagerProxy.java
index 6ccfd09..2dcf779 100644
--- a/prism/src/main/java/org/apache/falcon/resource/proxy/SchedulableEntityManagerProxy.java
+++ b/prism/src/main/java/org/apache/falcon/resource/proxy/SchedulableEntityManagerProxy.java
@@ -208,7 +208,8 @@ public class SchedulableEntityManagerProxy extends AbstractSchedulableEntityMana
                     EntityUtil.getEntity(type, entity);
                     return super.execute();
                 } catch (EntityNotRegisteredException e) {
-                    return new APIResult(APIResult.Status.SUCCEEDED, entity + "(" + type + ") removed successfully");
+                    return new APIResult(APIResult.Status.SUCCEEDED,
+                            entity + "(" + type + ") doesn't exist. Nothing to do");
                 } catch (FalconException e) {
                     throw FalconWebException.newException(e, Response.Status.BAD_REQUEST);
                 }