falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkatesh Seetharam (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-429) Falcon CLI entity list command throws NPE stack trace in case of no entities
Date Mon, 05 May 2014 22:17:21 GMT

    [ https://issues.apache.org/jira/browse/FALCON-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990046#comment-13990046
] 

Venkatesh Seetharam commented on FALCON-429:
--------------------------------------------

Did you test this? Is it better to return empty string than null?

> Falcon CLI entity list command throws NPE stack trace in case of no entities
> ----------------------------------------------------------------------------
>
>                 Key: FALCON-429
>                 URL: https://issues.apache.org/jira/browse/FALCON-429
>             Project: Falcon
>          Issue Type: Bug
>            Reporter: Satish Mittal
>            Assignee: Satish Mittal
>             Fix For: 0.5
>
>         Attachments: FALCON-429.patch.txt
>
>
> When 'falcon entity -list' command is run in a cluster that doesn't have any entity of
a particular type, it throws following stack trace:
> {noformat}
> satish@dev2:~/install/falcon-prism$ bin/falcon entity -type process -list
> java.lang.NullPointerException
> 	at org.apache.falcon.cli.FalconCLI.entityCommand(FalconCLI.java:350)
> 	at org.apache.falcon.cli.FalconCLI.run(FalconCLI.java:169)
> 	at org.apache.falcon.cli.FalconCLI.main(FalconCLI.java:119)
> null
> {noformat}
> Typically this error will show up in an empty cluster where entities of a type are yet
to be submitted.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message