hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-7353) Cleanup FsShell and prevent masking of RTE stacktraces
Date Fri, 03 Jun 2011 17:17:47 GMT

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

Daryn Sharp updated HADOOP-7353:
--------------------------------

    Attachment: HADOOP-7353.patch

Cleanup exception handling in {{FsShell.run()}} method to print the stack trace of unexpected
exceptions such as NPEs.

Converted -help & -usage into {{FsCommand}} subclasses to greatly simplify the aforementioned
exception handling block.  All conditional chains are now gone!  Everything is dynamic.

A few trivial changes to {{Command}} & {{CommandFactory}} to support nested classes needed
for -help/-usage to access the {{CommandFactory}}.

Break shell object instantiation, and population of commandFactory, into separate methods
so DFSAdmin (already a subclass) can eventually take advantage of the modularity.

> Cleanup FsShell and prevent masking of RTE stacktraces
> ------------------------------------------------------
>
>                 Key: HADOOP-7353
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7353
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>         Attachments: HADOOP-7353.patch
>
>
> {{FsShell}}'s top level exception handler catches and displays exceptions.  Unfortunately
it displays only the first line of an exception, which means an unexpected {{RuntimeExceptions}}
like {{NullPointerException}} only display "{{cmd: NullPointerException}}".  This user has
no context to understand and/or accurately report the issue.
> Found due to bugs such as {{HADOOP-7327}}.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message