[
https://issues.apache.org/jira/browse/HADOOP-12164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14609300#comment-14609300
]
Hadoop QA commented on HADOOP-12164:
------------------------------------
\\
\\
| (/) *{color:green}+1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | pre-patch | 6m 52s | Pre-patch trunk compilation is
healthy. |
| {color:green}+1{color} | @author | 0m 0s | The patch does not contain any
@author tags. |
| {color:green}+1{color} | tests included | 0m 0s | The patch appears to
include 2 new or modified test files. |
| {color:green}+1{color} | javac | 7m 37s | There were no new javac warning
messages. |
| {color:green}+1{color} | release audit | 0m 19s | The applied patch does
not increase the total number of release audit warnings. |
| {color:green}+1{color} | checkstyle | 1m 5s | There were no new checkstyle
issues. |
| {color:green}+1{color} | whitespace | 0m 0s | The patch has no lines that
end in whitespace. |
| {color:green}+1{color} | install | 1m 33s | mvn install still works. |
| {color:green}+1{color} | eclipse:eclipse | 0m 32s | The patch built with
eclipse:eclipse. |
| {color:green}+1{color} | findbugs | 1m 48s | The patch does not introduce
any new Findbugs (version 3.0.0) warnings. |
| {color:green}+1{color} | common tests | 22m 44s | Tests passed in
hadoop-common. |
| | | 42m 33s | |
\\
\\
|| Subsystem || Report/Notes ||
| Patch URL |
http://issues.apache.org/jira/secure/attachment/12742968/HADOOP-12164.000.patch
|
| Optional Tests | javac unit findbugs checkstyle |
| git revision | trunk / d0cc038 |
| hadoop-common test log |
https://builds.apache.org/job/PreCommit-HADOOP-Build/7120/artifact/patchprocess/testrun_hadoop-common.txt
|
| Test Results |
https://builds.apache.org/job/PreCommit-HADOOP-Build/7120/testReport/ |
| Java | 1.7.0_55 |
| uname | Linux asf901.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP
PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux |
| Console output |
https://builds.apache.org/job/PreCommit-HADOOP-Build/7120/console |
This message was automatically generated.
> Fix TestMove and TestFsShellReturnCode failed to get command name using
> reflection.
> -----------------------------------------------------------------------------------
>
> Key: HADOOP-12164
> URL: https://issues.apache.org/jira/browse/HADOOP-12164
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.7.0
> Reporter: Lei (Eddy) Xu
> Assignee: Lei (Eddy) Xu
> Priority: Minor
> Attachments: HADOOP-12164.000.patch
>
>
> When enabled {{hadoop.shell.missing.defaultFs.warning}}, a few tests were
> failed as following:
> {noformat}
> java.lang.RuntimeException: failed to get .NAME
> at java.lang.Class.getDeclaredField(Class.java:1948)
> at org.apache.hadoop.fs.shell.Command.getCommandField(Command.java:458)
> at org.apache.hadoop.fs.shell.Command.getName(Command.java:401)
> at
> org.apache.hadoop.fs.shell.FsCommand.getCommandName(FsCommand.java:80)
> at
> org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:111)
> at org.apache.hadoop.fs.shell.Command.run(Command.java:154)
> at
> org.apache.hadoop.fs.TestFsShellReturnCode.testChgrpGroupValidity(TestFsShellReturnCode.java:434)
> {noformat}
> The reason is that, in {{FsCommand#processRawArguments}}, it uses
> {{getCommandName()}}, which uses reflection to find {{static String NAME}}
> field, to build error message. But in the tests, the commands are built
> without {{static String NAME}} field, since it is not inherited.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)