hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2331) Hdfs compilation fails
Date Thu, 15 Sep 2011 06:44:08 GMT

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

Hadoop QA commented on HDFS-2331:
---------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12494568/HDFS-2331-1.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    -1 findbugs.  The patch appears to introduce 2 new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit
warnings.

    -1 core tests.  The patch failed these unit tests:
                  org.apache.hadoop.hdfs.TestDfsOverAvroRpc
                  org.apache.hadoop.hdfs.server.blockmanagement.TestHost2NodesMap

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/1251//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HDFS-Build/1251//artifact/trunk/hadoop-hdfs-project/patchprocess/newPatchFindbugsWarningshadoop-hdfs.html
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/1251//console

This message is automatically generated.

> Hdfs compilation fails
> ----------------------
>
>                 Key: HDFS-2331
>                 URL: https://issues.apache.org/jira/browse/HDFS-2331
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.23.0, 0.24.0
>            Reporter: Abhijit Suresh Shingate
>            Assignee: Abhijit Suresh Shingate
>             Fix For: 0.23.0, 0.24.0
>
>         Attachments: HDFS-2331-1.patch, HDFS-2331.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I am trying to perform complete build from trunk folder but the compilation fails.
> *Commandline:*
> mvn clean install  
> *Error Message:*
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
> 3.2:compile (default-compile) on project hadoop-hdfs: Compilation failure
> [ERROR] \Hadoop\SVN\trunk\hadoop-hdfs-project\hadoop-hdfs\src\main\java\org
> \apache\hadoop\hdfs\web\WebHdfsFileSystem.java:[209,21] type parameters of <T>T
> cannot be determined; no unique maximal instance exists for type variable T with
>  upper bounds T,java.lang.Object
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please rea
> d the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
> eption
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> This is because of known reason
> [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954]
> {code:title=WebHdfsFileSystem.java|borderStyle=solid}
> Following is the code snippet with issue.
>   private <T> T run(final HttpOpParam.Op op, final Path fspath,
>       final Param<?,?>... parameters) throws IOException {
>     final HttpURLConnection conn = httpConnect(op, fspath, parameters);
>     validateResponse(op, conn);
>     try {
>       return jsonParse(conn.getInputStream());
>     } finally {
>       conn.disconnect();
>     }
>   }
> {code} 
> Fix to the issue
> {code:title=WebHdfsFileSystem.java|borderStyle=solid}
> Following is the fix to the issue.
>   private <T> T run(final HttpOpParam.Op op, final Path fspath,
>       final Param<?,?>... parameters) throws IOException {
>     final HttpURLConnection conn = httpConnect(op, fspath, parameters);
>     validateResponse(op, conn);
>     try {
>       return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
>     } finally {
>       conn.disconnect();
>     }
>   }
> {code} 

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

        

Mime
View raw message