Hadoop Common
  1. Hadoop Common
  2. HADOOP-8660

TestPseudoAuthenticator failing with NPE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: None
    • Labels:
      None

      Description

      This test started failing recently, on top of trunk:

      testAuthenticationAnonymousAllowed(org.apache.hadoop.security.authentication.client.TestPseudoAuthenticator) Time elapsed: 0.241 sec <<< ERROR!
      java.lang.NullPointerException
      at org.apache.hadoop.security.authentication.client.PseudoAuthenticator.authenticate(PseudoAuthenticator.java:75)
      at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:232)
      at org.apache.hadoop.security.authentication.client.AuthenticatorTestCase._testAuthentication(AuthenticatorTestCase.java:127)
      at org.apache.hadoop.security.authentication.client.TestPseudoAuthenticator.testAuthenticationAnonymousAllowed(TestPseudoAuthenticator.java:65)

      1. HADOOP-8660.patch
        2 kB
        Alejandro Abdelnur

        Activity

        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk #1162 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1162/)
        HADOOP-8660. TestPseudoAuthenticator failing with NPE. (tucu) (Revision 1370812)

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

        • /hadoop/common/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #1162 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1162/ ) HADOOP-8660 . TestPseudoAuthenticator failing with NPE. (tucu) (Revision 1370812) Result = FAILURE tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1370812 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk #1130 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1130/)
        HADOOP-8660. TestPseudoAuthenticator failing with NPE. (tucu) (Revision 1370812)

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

        • /hadoop/common/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #1130 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1130/ ) HADOOP-8660 . TestPseudoAuthenticator failing with NPE. (tucu) (Revision 1370812) Result = SUCCESS tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1370812 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk-Commit #2582 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2582/)
        HADOOP-8660. TestPseudoAuthenticator failing with NPE. (tucu) (Revision 1370812)

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

        • /hadoop/common/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk-Commit #2582 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2582/ ) HADOOP-8660 . TestPseudoAuthenticator failing with NPE. (tucu) (Revision 1370812) Result = FAILURE tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1370812 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-trunk-Commit #2563 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2563/)
        HADOOP-8660. TestPseudoAuthenticator failing with NPE. (tucu) (Revision 1370812)

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

        • /hadoop/common/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        Show
        Hudson added a comment - Integrated in Hadoop-Common-trunk-Commit #2563 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2563/ ) HADOOP-8660 . TestPseudoAuthenticator failing with NPE. (tucu) (Revision 1370812) Result = SUCCESS tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1370812 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk-Commit #2628 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2628/)
        HADOOP-8660. TestPseudoAuthenticator failing with NPE. (tucu) (Revision 1370812)

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

        • /hadoop/common/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk-Commit #2628 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2628/ ) HADOOP-8660 . TestPseudoAuthenticator failing with NPE. (tucu) (Revision 1370812) Result = SUCCESS tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1370812 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        Hide
        Alejandro Abdelnur added a comment -

        @eli, I think it was a case of 'tucu' error, run the tests from the IDE and it looks I didn't force a recompile and it was pickup the previous compiled class.

        Committed to trunk and branch-2.

        Show
        Alejandro Abdelnur added a comment - @eli, I think it was a case of 'tucu' error, run the tests from the IDE and it looks I didn't force a recompile and it was pickup the previous compiled class. Committed to trunk and branch-2.
        Hide
        Eli Collins added a comment -

        +1

        why didn't the HADOOP-8644 test results catch this? Added in a later patch that jenkins didn't run against or the primary job doesn't run the hadoop-auth tests (seems for former given jenkins reported "The patch passed unit tests in hadoop-common-project/hadoop-auth")?

        Show
        Eli Collins added a comment - +1 why didn't the HADOOP-8644 test results catch this? Added in a later patch that jenkins didn't run against or the primary job doesn't run the hadoop-auth tests (seems for former given jenkins reported "The patch passed unit tests in hadoop-common-project/hadoop-auth")?
        Hide
        Hadoop QA added a comment -

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

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

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

        +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-common-project/hadoop-auth.

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

        Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1261//testReport/
        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1261//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/12539747/HADOOP-8660.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 1 new or modified test files. +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-common-project/hadoop-auth. +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1261//testReport/ Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1261//console This message is automatically generated.
        Hide
        Alejandro Abdelnur added a comment -

        Related to HADOOP-8644, missed the point that if using mockito would not propagate the received connection.

        Show
        Alejandro Abdelnur added a comment - Related to HADOOP-8644 , missed the point that if using mockito would not propagate the received connection.
        Hide
        Eli Collins added a comment -

        Perhaps related to HADOOP-8660?

        Show
        Eli Collins added a comment - Perhaps related to HADOOP-8660 ?

          People

          • Assignee:
            Alejandro Abdelnur
            Reporter:
            Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development