Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4860

DelegationTokenRenewal attempts to renew token even after a job is removed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.2.0
    • security
    • None
    • Reviewed

    Description

      mapreduce.security.token.DelegationTokenRenewal synchronizes on removeDelegationToken, but fails to synchronize on addToken, and renewing tokens in run().

      This inconsistency is exposed by frequent failures of TestDelegationTokenRenewal:

      Error Message
      
      renew wasn't called as many times as expected expected:<4> but was:<5>
      Stacktrace
      
      junit.framework.AssertionFailedError: renew wasn't called as many times as expected expected:<4> but was:<5>
      	at org.apache.hadoop.mapreduce.security.token.TestDelegationTokenRenewal.testDTRenewal(TestDelegationTokenRenewal.java:317)
      	at org.apache.hadoop.mapreduce.security.token.TestDelegationTokenRenewal.testDTRenewalAfterClose(TestDelegationTokenRenewal.java:338)
      
      

      Attachments

        1. mr-4860.patch
          1 kB
          Karthik Kambatla
        2. mr-4860.patch
          1 kB
          Karthik Kambatla
        3. mr-4860.patch
          2 kB
          Karthik Kambatla
        4. mr-4860.patch
          3 kB
          Karthik Kambatla
        5. mr-4860.patch
          4 kB
          Karthik Kambatla

        Issue Links

          Activity

            People

              kasha Karthik Kambatla
              kasha Karthik Kambatla
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: