Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.1
    • Component/s: mrv2, test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      Reenabled and fixed bugs in the failing test TestDelegationToken.
      Show
      Reenabled and fixed bugs in the failing test TestDelegationToken.

      Description

      Testcase: testDelegationToken took 2.043 sec
      Caused an ERROR
      Client Hitesh tries to renew a token with renewer specified as alice
      at org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.renewToken(AbstractDelegationTokenSecretManager.java:239)
      at org.apache.hadoop.mapred.JobTracker.renewDelegationToken(JobTracker.java:4829)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:632)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1517)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1513)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:396)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1152)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1511)

      org.apache.hadoop.security.AccessControlException: Client Hitesh tries to renew a token with renewer specified as alice
      at org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.renewToken(AbstractDelegationTokenSecretManager.java:239)
      at org.apache.hadoop.mapred.JobTracker.renewDelegationToken(JobTracker.java:4829)
      at org.apache.hadoop.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:632)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1517)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1513)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:396)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1152)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1511)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:90)
      at org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:57)
      at org.apache.hadoop.mapreduce.Cluster.renewDelegationToken(Cluster.java:399)
      at org.apache.hadoop.mapred.JobClient$Renewer.renew(JobClient.java:475)
      at org.apache.hadoop.security.token.Token.renew(Token.java:310)
      at org.apache.hadoop.mapred.JobClient.renewDelegationToken(JobClient.java:1088)
      at org.apache.hadoop.mapreduce.security.token.delegation.TestDelegationToken.testDelegationToken(TestDelegationToken.java:89)
      Caused by: org.apache.hadoop.security.AccessControlException: Client Hitesh tries to renew a token with renewer specified as alice
      at org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.renewToken(AbstractDelegationTokenSecretManager.java:239)
      at org.apache.hadoop.mapred.JobTracker.renewDelegationToken(JobTracker.java:4829)
      at org.apache.hadoop.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:632)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1517)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1513)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:396)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1152)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1511)

      at org.apache.hadoop.ipc.Client.call(Client.java:1085)
      at org.apache.hadoop.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:244)
      at $Proxy11.renewDelegationToken(Unknown Source)
      at org.apache.hadoop.mapreduce.Cluster.renewDelegationToken(Cluster.java:397)

        Activity

        Hide
        Hadoop QA added a comment -

        +1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12502035/MR-3219.1.patch
        against trunk revision .

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

        +1 tests included. The patch appears to include 3 new or modified tests.

        +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 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 .

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

        Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/1243//testReport/
        Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/1243//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/12502035/MR-3219.1.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +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 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 . +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/1243//testReport/ Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/1243//console This message is automatically generated.
        Hide
        Vinod Kumar Vavilapalli added a comment -

        It is weird that the renewer creates a separate client everytime and that the individual renew/cancel method calls need the UGI.doAs() block. But given the Renewal infrastructure of using ServiceLoaders, there seems to be no way of avoiding this.

        +1 for the patch.

        Show
        Vinod Kumar Vavilapalli added a comment - It is weird that the renewer creates a separate client everytime and that the individual renew/cancel method calls need the UGI.doAs() block. But given the Renewal infrastructure of using ServiceLoaders, there seems to be no way of avoiding this. +1 for the patch.
        Hide
        Vinod Kumar Vavilapalli added a comment -

        I just committed this to trunk and branch-0.23.0. Thanks Hitesh!

        Show
        Vinod Kumar Vavilapalli added a comment - I just committed this to trunk and branch-0.23.0. Thanks Hitesh!
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-trunk-Commit #1246 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1246/)
        MAPREDUCE-3219. Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah.

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

        • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Show
        Hudson added a comment - Integrated in Hadoop-Common-trunk-Commit #1246 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1246/ ) MAPREDUCE-3219 . Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah. vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197415 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-0.23-Commit #148 (See https://builds.apache.org/job/Hadoop-Common-0.23-Commit/148/)
        MAPREDUCE-3219. Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah.
        svn merge -c r1197415 --ignore-ancestry ../../trunk/

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

        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Show
        Hudson added a comment - Integrated in Hadoop-Common-0.23-Commit #148 (See https://builds.apache.org/job/Hadoop-Common-0.23-Commit/148/ ) MAPREDUCE-3219 . Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah. svn merge -c r1197415 --ignore-ancestry ../../trunk/ vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197416 Files : /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-0.23-Commit #147 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Commit/147/)
        MAPREDUCE-3219. Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah.
        svn merge -c r1197415 --ignore-ancestry ../../trunk/

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

        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-0.23-Commit #147 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Commit/147/ ) MAPREDUCE-3219 . Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah. svn merge -c r1197415 --ignore-ancestry ../../trunk/ vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197416 Files : /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk-Commit #1320 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1320/)
        MAPREDUCE-3219. Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah.

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

        • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk-Commit #1320 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1320/ ) MAPREDUCE-3219 . Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah. vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197415 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-0.23-Commit #159 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Commit/159/)
        MAPREDUCE-3219. Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah.
        svn merge -c r1197415 --ignore-ancestry ../../trunk/

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

        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-0.23-Commit #159 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Commit/159/ ) MAPREDUCE-3219 . Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah. svn merge -c r1197415 --ignore-ancestry ../../trunk/ vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197416 Files : /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk-Commit #1268 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1268/)
        MAPREDUCE-3219. Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah.

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

        • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk-Commit #1268 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1268/ ) MAPREDUCE-3219 . Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah. vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197415 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-0.23-Build #66 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/66/)
        MAPREDUCE-3219. Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah.
        svn merge -c r1197415 --ignore-ancestry ../../trunk/

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

        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-0.23-Build #66 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/66/ ) MAPREDUCE-3219 . Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah. svn merge -c r1197415 --ignore-ancestry ../../trunk/ vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197416 Files : /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk #853 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/853/)
        MAPREDUCE-3219. Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah.

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

        • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #853 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/853/ ) MAPREDUCE-3219 . Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah. vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197415 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-0.23-Build #80 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/80/)
        MAPREDUCE-3219. Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah.
        svn merge -c r1197415 --ignore-ancestry ../../trunk/

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

        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-0.23-Build #80 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/80/ ) MAPREDUCE-3219 . Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah. svn merge -c r1197415 --ignore-ancestry ../../trunk/ vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197416 Files : /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk #887 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/887/)
        MAPREDUCE-3219. Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah.

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

        • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
        • /hadoop/common/trunk/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #887 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/887/ ) MAPREDUCE-3219 . Reenabled and fixed bugs in the failing test TestDelegationToken. Contributed by Hitesh Shah. vinodkv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197415 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapreduce/security/token/delegation/TestDelegationToken.java

          People

          • Assignee:
            Hitesh Shah
            Reporter:
            Hitesh Shah
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development