[
https://issues.apache.org/jira/browse/FALCON-1156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14502797#comment-14502797
]
Ajay Yadava commented on FALCON-1156:
-------------------------------------
I think this still needs to be addressed as it causes a lot of confusion for
users as is evident in FALCON-75 & FALCON-911. The delete operation can be
successful even when the entity doesn't exist to ensure idempotent behaviour
but the message can be modified to inform the user that the entity didn't
exist.
> Misleading error message while deleting entity which does not exist
> -------------------------------------------------------------------
>
> Key: FALCON-1156
> URL: https://issues.apache.org/jira/browse/FALCON-1156
> Project: Falcon
> Issue Type: Bug
> Components: feed, prism, process
> Affects Versions: 0.6.1
> Reporter: Pragya Mittal
> Assignee: Ajay Yadava
>
> While deleting any entity (cluster/feed/process) which does not exist, the
> response message from server is entity removed successfully.
> {code}
> dataqa@ip-192-168-138-200:/mnt/git/falcon/falconPrism/bin$ ./falcon entity
> -type process -list
> (PROCESS) NewPrismProcessUpdateTest--agregator-coord16-1b95f577
> dataqa@ip-192-168-138-200:/mnt/git/falcon/falconPrism/bin$ ./falcon entity
> -type process -delete -name pxyz
> falcon/pxyz(process) removed successfully
> prism/pxyz(process) doesn't exist. Nothing to do
> dataqa@ip-192-168-138-200:/mnt/git/falcon/falconPrism/bin$ ./falcon entity
> -type feed -list
> (FEED) NewPrismProcessUpdateTest--raaw-logs16-fb861a10
> (FEED) NewPrismProcessUpdateTest--agregated-logs16-a4b247a5
> dataqa@ip-192-168-138-200:/mnt/git/falcon/falconPrism/bin$ ./falcon entity
> -type feed -delete -name fxyz
> falcon/fxyz(feed) removed successfully
> prism/fxyz(feed) doesn't exist. Nothing to do
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)