You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Pallavi Rao (JIRA)" <ji...@apache.org> on 2015/03/26 07:06:52 UTC

[jira] [Updated] (FALCON-1123) Stacktrace printed by Falcon CLI is not useful to user

     [ https://issues.apache.org/jira/browse/FALCON-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pallavi Rao updated FALCON-1123:
--------------------------------
    Attachment: FALCON-1123.patch

FalconCLIException is thrown using the messages in the REST API result. So, the stacktrace is not really useful.

> Stacktrace printed by Falcon CLI is not useful to user
> ------------------------------------------------------
>
>                 Key: FALCON-1123
>                 URL: https://issues.apache.org/jira/browse/FALCON-1123
>             Project: Falcon
>          Issue Type: Improvement
>            Reporter: Pallavi Rao
>            Assignee: Pallavi Rao
>            Priority: Minor
>         Attachments: FALCON-1123.patch
>
>
> {code}
> C1MLK2JCDTY3:falcon-distributed-0.7-SNAPSHOT pallavi.rao$ bin/falcon entity -type feed -name factual-final-data -definition
> Stacktrace:
> org.apache.falcon.client.FalconCLIException: Bad Request;factual-final-data (feed) not found
> 	at org.apache.falcon.client.FalconCLIException.fromReponse(FalconCLIException.java:44)
> 	at org.apache.falcon.client.FalconClient.checkIfSuccessful(FalconClient.java:1022)
> 	at org.apache.falcon.client.FalconClient.sendDefinitionRequest(FalconClient.java:695)
> 	at org.apache.falcon.client.FalconClient.getDefinition(FalconClient.java:360)
> 	at org.apache.falcon.cli.FalconCLI.entityCommand(FalconCLI.java:452)
> 	at org.apache.falcon.cli.FalconCLI.run(FalconCLI.java:188)
> 	at org.apache.falcon.cli.FalconCLI.main(FalconCLI.java:138)
> {code}
> The stacktrace doesn't really give any additional information to user. It is just clutter.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)