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
Attachments
Issue Links
- is cloned by
-
YARN-264 y.s.rm.DelegationTokenRenewer attempts to renew token even after removing an app
- Closed
- relates to
-
MAPREDUCE-5384 Races in DelegationTokenRenewal
- Open
-
MAPREDUCE-4861 Cleanup: Remove unused mapreduce.security.token.DelegationTokenRenewal
- Closed
-
MAPREDUCE-5364 Deadlock between RenewalTimerTask methods cancel() and run()
- Closed
-
MAPREDUCE-4795 TestDelegationTokenRenewal should not use static variables in Renewer
- Resolved