Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3374

hdfs' TestDelegationToken fails intermittently with a race condition

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.3
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:

      Description

      The testcase is failing because the MiniDFSCluster is shutdown before the secret manager can change the key, which calls system.exit with no edit streams available.

      
          [junit] 2012-05-04 15:03:51,521 WARN  common.Storage (FSImage.java:updateRemovedDirs(224)) - Removing storage dir /home/horton/src/hadoop/build/test/data/dfs/name1
          [junit] 2012-05-04 15:03:51,522 FATAL namenode.FSNamesystem (FSEditLog.java:fatalExit(388)) - No edit streams are accessible
          [junit] java.lang.Exception: No edit streams are accessible
          [junit]     at org.apache.hadoop.hdfs.server.namenode.FSEditLog.fatalExit(FSEditLog.java:388)
          [junit]     at org.apache.hadoop.hdfs.server.namenode.FSEditLog.exitIfNoStreams(FSEditLog.java:407)
          [junit]     at org.apache.hadoop.hdfs.server.namenode.FSEditLog.removeEditsAndStorageDir(FSEditLog.java:432)
          [junit]     at org.apache.hadoop.hdfs.server.namenode.FSEditLog.removeEditsStreamsAndStorageDirs(FSEditLog.java:468)
          [junit]     at org.apache.hadoop.hdfs.server.namenode.FSEditLog.logSync(FSEditLog.java:1028)
          [junit]     at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.logUpdateMasterKey(FSNamesystem.java:5641)
          [junit]     at org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenSecretManager.logUpdateMasterKey(DelegationTokenSecretManager.java:286)
          [junit]     at org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.updateCurrentKey(AbstractDelegationTokenSecretManager.java:150)
          [junit]     at org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.rollMasterKey(AbstractDelegationTokenSecretManager.java:174)
          [junit]     at org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager$ExpiredTokenRemover.run(AbstractDelegationTokenSecretManager.java:385)
          [junit]     at java.lang.Thread.run(Thread.java:662)
          [junit] Running org.apache.hadoop.hdfs.security.TestDelegationToken
          [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
          [junit] Test org.apache.hadoop.hdfs.security.TestDelegationToken FAILED (crashed)
      
      1. HDFS-3374.trunk.patch
        1.0 kB
        Brandon Li
      2. HDFS-3374.patch
        3 kB
        Matt Foley
      3. HDFS-3374-branch-1.0.patch
        3 kB
        Matt Foley
      4. hdfs-3374.patch
        3 kB
        Owen O'Malley

        Issue Links

          Activity

          Owen O'Malley created issue -
          Owen O'Malley made changes -
          Field Original Value New Value
          Attachment hdfs-3374.patch [ 12525686 ]
          Matt Foley made changes -
          Attachment HDFS-3374-branch-1.0.patch [ 12525803 ]
          Matt Foley made changes -
          Attachment HDFS-3374.patch [ 12525804 ]
          Matt Foley made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Target Version/s 1.0.3, 1.1.0 [ 12320249, 12317959 ] 1.1.0, 1.0.3 [ 12317959, 12320249 ]
          Matt Foley made changes -
          Fix Version/s 1.0.3 [ 12320249 ]
          Target Version/s 1.0.3, 1.1.0 [ 12320249, 12317959 ] 1.1.0, 1.0.3 [ 12317959, 12320249 ]
          Matt Foley made changes -
          Target Version/s 1.0.3, 1.1.0 [ 12320249, 12317959 ] 1.0.3, 2.0.0 [ 12320249, 12320353 ]
          Brandon Li made changes -
          Attachment HDFS-3374.trunk.patch [ 12567460 ]
          Brandon Li made changes -
          Link This issue relates to HDFS-4466 [ HDFS-4466 ]
          Brandon Li made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Target Version/s 1.0.3, 2.0.0-alpha [ 12320249, 12320353 ] 1.0.3 [ 12320249 ]
          Resolution Fixed [ 1 ]
          Brandon Li made changes -
          Link This issue is related to HDFS-4466 [ HDFS-4466 ]
          Brandon Li made changes -
          Link This issue is related to HDFS-4466 [ HDFS-4466 ]

            People

            • Assignee:
              Owen O'Malley
              Reporter:
              Owen O'Malley
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development