Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3824

TestHftpDelegationToken fails intermittently with JDK7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2-alpha
    • 2.0.3-alpha, 0.23.5
    • test

    Description

      testHdfsDelegationToken fails if not run before testSelectHftpDelegationToken and testSelectHsftpDelegationToken:

      Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.541 sec <<< FAILURE!
      testHdfsDelegationToken(org.apache.hadoop.hdfs.TestHftpDelegationToken)  Time elapsed: 0.039 sec  <<< FAILURE!
      java.lang.AssertionError: wrong token expected same:<Kind: HDFS_DELEGATION_TOKEN, Service: 127.0.0.1:8020, Ident: > was not:<null>
      

      Debug output:

      2012-08-20 18:46:54,742 INFO  fs.FileSystem (HftpFileSystem.java:run(251)) - Couldn't get a delegation token from http://localhost:50470 using http.
      2012-08-20 18:46:54,743 DEBUG fs.FileSystem (HftpFileSystem.java:run(254)) - error was
      java.io.IOException: Unable to obtain remote token
              at org.apache.hadoop.hdfs.tools.DelegationTokenFetcher.getDTfromRemote(DelegationTokenFetcher.java:239)
              at org.apache.hadoop.hdfs.HftpFileSystem$2.run(HftpFileSystem.java:249)
              at org.apache.hadoop.hdfs.HftpFileSystem$2.run(HftpFileSystem.java:243)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:416)
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1332)
              at org.apache.hadoop.hdfs.HftpFileSystem.getDelegationToken(HftpFileSystem.java:243)
              at org.apache.hadoop.hdfs.HftpFileSystem.initDelegationToken(HftpFileSystem.java:196)
              at org.apache.hadoop.hdfs.HftpFileSystem.initialize(HftpFileSystem.java:185)
              at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2284)
              at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:85)
              at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2318)
              at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2300)
              at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:315)
              at org.apache.hadoop.hdfs.TestHftpDelegationToken$1.run(TestHftpDelegationToken.java:131)
              at org.apache.hadoop.hdfs.TestHftpDelegationToken$1.run(TestHftpDelegationToken.java:128)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:416)
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1332)
              at org.apache.hadoop.hdfs.TestHftpDelegationToken.testHdfsDelegationToken(TestHftpDelegationToken.java:61)
      ...
      Caused by: java.net.ConnectException: Connection refused
      ...
      

      Attachments

        1. HDFS-3824.patch
          0.8 kB
          Thomas Graves
        2. HDFS-3824.patch
          0.8 kB
          Trevor Robinson

        Activity

          People

            scurrilous Trevor Robinson
            scurrilous Trevor Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: