Hadoop YARN
  1. Hadoop YARN
  2. YARN-161

Yarn Common has multiple compiler warnings for unchecked operations

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 2.0.3-alpha, 0.23.5
    • Component/s: api
    • Labels:
      None

      Description

      The warnings are in classes StateMachineFactory, RecordFactoryProvider, RpcFactoryProvider, and YarnRemoteExceptionFactoryProvider. OpenJDK 1.6.0_24 actually treats these as compilation errors, causing the build to fail.

      1. YARN-161.patch
        7 kB
        Chris Nauroth

        Activity

        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk #1228 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1228/)
        YARN-161. Fix multiple compiler warnings for unchecked operations in YARN common. Contributed by Chris Nauroth. (Revision 1399056)

        Result = FAILURE
        vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1399056
        Files :

        • /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #1228 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1228/ ) YARN-161 . Fix multiple compiler warnings for unchecked operations in YARN common. Contributed by Chris Nauroth. (Revision 1399056) Result = FAILURE vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1399056 Files : /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk #1198 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1198/)
        YARN-161. Fix multiple compiler warnings for unchecked operations in YARN common. Contributed by Chris Nauroth. (Revision 1399056)

        Result = SUCCESS
        vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1399056
        Files :

        • /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #1198 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1198/ ) YARN-161 . Fix multiple compiler warnings for unchecked operations in YARN common. Contributed by Chris Nauroth. (Revision 1399056) Result = SUCCESS vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1399056 Files : /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-0.23-Build #407 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/407/)
        YARN-161. Fix multiple compiler warnings for unchecked operations in YARN common. Contributed by Chris Nauroth.
        svn merge --ignore-ancestry -c 1399056 ../../trunk/ (Revision 1399058)

        Result = UNSTABLE
        vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1399058
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-yarn-project/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java
        • /hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java
        • /hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java
        • /hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-0.23-Build #407 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/407/ ) YARN-161 . Fix multiple compiler warnings for unchecked operations in YARN common. Contributed by Chris Nauroth. svn merge --ignore-ancestry -c 1399056 ../../trunk/ (Revision 1399058) Result = UNSTABLE vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1399058 Files : /hadoop/common/branches/branch-0.23/hadoop-yarn-project/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java /hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java /hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java /hadoop/common/branches/branch-0.23/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Yarn-trunk #6 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/6/)
        YARN-161. Fix multiple compiler warnings for unchecked operations in YARN common. Contributed by Chris Nauroth. (Revision 1399056)

        Result = FAILURE
        vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1399056
        Files :

        • /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java
        Show
        Hudson added a comment - Integrated in Hadoop-Yarn-trunk #6 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/6/ ) YARN-161 . Fix multiple compiler warnings for unchecked operations in YARN common. Contributed by Chris Nauroth. (Revision 1399056) Result = FAILURE vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1399056 Files : /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-trunk-Commit #2876 (See https://builds.apache.org/job/Hadoop-trunk-Commit/2876/)
        YARN-161. Fix multiple compiler warnings for unchecked operations in YARN common. Contributed by Chris Nauroth. (Revision 1399056)

        Result = SUCCESS
        vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1399056
        Files :

        • /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java
        • /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java
        Show
        Hudson added a comment - Integrated in Hadoop-trunk-Commit #2876 (See https://builds.apache.org/job/Hadoop-trunk-Commit/2876/ ) YARN-161 . Fix multiple compiler warnings for unchecked operations in YARN common. Contributed by Chris Nauroth. (Revision 1399056) Result = SUCCESS vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1399056 Files : /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java
        Hide
        Vinod Kumar Vavilapalli added a comment -

        I just committed this to trunk, branch-2 and branch-0.23. Thanks Chris!

        Show
        Vinod Kumar Vavilapalli added a comment - I just committed this to trunk, branch-2 and branch-0.23. Thanks Chris!
        Hide
        Chris Nauroth added a comment -

        Thanks, Vinod. Yes, compilation passes on OpenJDK with this patch.

        Show
        Chris Nauroth added a comment - Thanks, Vinod. Yes, compilation passes on OpenJDK with this patch.
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12549336/YARN-161.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 javac. The applied patch does not increase the total number of javac compiler warnings.

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

        +1 eclipse:eclipse. The patch built with eclipse:eclipse.

        +1 findbugs. The patch does not introduce any 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 passed unit tests in hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common.

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

        Test results: https://builds.apache.org/job/PreCommit-YARN-Build/91//testReport/
        Console output: https://builds.apache.org/job/PreCommit-YARN-Build/91//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12549336/YARN-161.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 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . The javadoc tool did not generate any warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. +1 findbugs . The patch does not introduce any 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 passed unit tests in hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common. +1 contrib tests . The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-YARN-Build/91//testReport/ Console output: https://builds.apache.org/job/PreCommit-YARN-Build/91//console This message is automatically generated.
        Hide
        Vinod Kumar Vavilapalli added a comment -

        Looks good, kicked Jenkins.

        So, compilation passes on openJDK with this patch?

        Show
        Vinod Kumar Vavilapalli added a comment - Looks good, kicked Jenkins. So, compilation passes on openJDK with this patch?
        Hide
        Chris Nauroth added a comment -

        This patch corrects the compiler warnings/errors by specifying type parameters explicitly, so that the types are not raw. The last line of the diff actually relaxes a type from Iterator<STATE> to raw Iterator. This was the cleaner fix, because the logic afterwards doesn't need more specific type information. It just needs to call toString on the elements, and all types have toString.

        This patch will get a -1 from Jenkins for lack of new tests. There are no logic changes here, and all existing tests pass.

        Show
        Chris Nauroth added a comment - This patch corrects the compiler warnings/errors by specifying type parameters explicitly, so that the types are not raw. The last line of the diff actually relaxes a type from Iterator<STATE> to raw Iterator. This was the cleaner fix, because the logic afterwards doesn't need more specific type information. It just needs to call toString on the elements, and all types have toString. This patch will get a -1 from Jenkins for lack of new tests. There are no logic changes here, and all existing tests pass.
        Hide
        Chris Nauroth added a comment -

        Here are the warnings:

        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[229,15] [unchecked] unchecked call to ApplicableSingleOrMultipleTransition(STATE,EVENTTYPE,org.apache.hadoop.yarn.state.StateMachineFactory.Transition<OPERAND,STATE,EVENTTYPE,EVENT>) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableSingleOrMultipleTransition
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[228,11] [unchecked] unchecked call to StateMachineFactory(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>,org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableTransition) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[228,11] [unchecked] unchecked conversion
        found   : org.apache.hadoop.yarn.state.StateMachineFactory
        required: org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[253,9] [unchecked] unchecked call to ApplicableSingleOrMultipleTransition(STATE,EVENTTYPE,org.apache.hadoop.yarn.state.StateMachineFactory.Transition<OPERAND,STATE,EVENTTYPE,EVENT>) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableSingleOrMultipleTransition
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[251,11] [unchecked] unchecked call to StateMachineFactory(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>,org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableTransition) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[251,11] [unchecked] unchecked conversion
        found   : org.apache.hadoop.yarn.state.StateMachineFactory
        required: org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[276,11] [unchecked] unchecked call to StateMachineFactory(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>,boolean) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[276,11] [unchecked] unchecked conversion
        found   : org.apache.hadoop.yarn.state.StateMachineFactory
        required: org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[331,23] [unchecked] unchecked call to apply(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableTransition
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[472,60] [unchecked] unchecked conversion
        found   : java.util.Iterator
        required: java.util.Iterator<STATE>
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java:[77,37] [unchecked] unchecked call to getMethod(java.lang.String,java.lang.Class<?>...) as a member of the raw type java.lang.Class
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java:[55,37] [unchecked] unchecked call to getMethod(java.lang.String,java.lang.Class<?>...) as a member of the raw type java.lang.Class
        [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java:[62,37] [unchecked] unchecked call to getMethod(java.lang.String,java.lang.Class<?>...) as a member of the raw type java.lang.Class
        

        On OpenJDK 1.6.0_24, these are treated as compilation errors, so they fail the build.

        cnauroth@ubuntu:pts/1] ~                                                                                           
        > uname -a
        Linux ubuntu 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
        [cnauroth@ubuntu:pts/1] ~                                                                                           
        > javac -version
        javac 1.6.0_24
        [cnauroth@ubuntu:pts/1] ~                                                                                           
        > java -version
        java version "1.6.0_24"
        OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
        OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
        
        Show
        Chris Nauroth added a comment - Here are the warnings: [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[229,15] [unchecked] unchecked call to ApplicableSingleOrMultipleTransition(STATE,EVENTTYPE,org.apache.hadoop.yarn.state.StateMachineFactory.Transition<OPERAND,STATE,EVENTTYPE,EVENT>) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableSingleOrMultipleTransition [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[228,11] [unchecked] unchecked call to StateMachineFactory(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>,org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableTransition) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[228,11] [unchecked] unchecked conversion found : org.apache.hadoop.yarn.state.StateMachineFactory required: org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT> [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[253,9] [unchecked] unchecked call to ApplicableSingleOrMultipleTransition(STATE,EVENTTYPE,org.apache.hadoop.yarn.state.StateMachineFactory.Transition<OPERAND,STATE,EVENTTYPE,EVENT>) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableSingleOrMultipleTransition [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[251,11] [unchecked] unchecked call to StateMachineFactory(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>,org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableTransition) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[251,11] [unchecked] unchecked conversion found : org.apache.hadoop.yarn.state.StateMachineFactory required: org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT> [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[276,11] [unchecked] unchecked call to StateMachineFactory(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>, boolean ) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[276,11] [unchecked] unchecked conversion found : org.apache.hadoop.yarn.state.StateMachineFactory required: org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT> [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[331,23] [unchecked] unchecked call to apply(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>) as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableTransition [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[472,60] [unchecked] unchecked conversion found : java.util.Iterator required: java.util.Iterator<STATE> [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java:[77,37] [unchecked] unchecked call to getMethod(java.lang. String ,java.lang. Class <?>...) as a member of the raw type java.lang. Class [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java:[55,37] [unchecked] unchecked call to getMethod(java.lang. String ,java.lang. Class <?>...) as a member of the raw type java.lang. Class [WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java:[62,37] [unchecked] unchecked call to getMethod(java.lang. String ,java.lang. Class <?>...) as a member of the raw type java.lang. Class On OpenJDK 1.6.0_24, these are treated as compilation errors, so they fail the build. cnauroth@ubuntu:pts/1] ~ > uname -a Linux ubuntu 3.2.0-29- generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux [cnauroth@ubuntu:pts/1] ~ > javac -version javac 1.6.0_24 [cnauroth@ubuntu:pts/1] ~ > java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

          People

          • Assignee:
            Chris Nauroth
            Reporter:
            Chris Nauroth
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development