HADOOP-6939. Inconsistent lock ordering in AbstractDelegationTokenSecretManager. Contributed by Todd Lipcon.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1042047 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dbd07f9e8c
commit
ee705fa5ee
@ -34,6 +34,9 @@ Trunk (unreleased changes)
|
||||
HADOOP-7045. TestDU fails on systems with local file systems with
|
||||
extended attributes. (eli)
|
||||
|
||||
HADOOP-6939. Inconsistent lock ordering in
|
||||
AbstractDelegationTokenSecretManager. (Todd Lipcon via tomwhite)
|
||||
|
||||
Release 0.22.0 - Unreleased
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -95,11 +95,13 @@ public AbstractDelegationTokenSecretManager(long delegationKeyUpdateInterval,
|
||||
}
|
||||
|
||||
/** should be called before this object is used */
|
||||
public synchronized void startThreads() throws IOException {
|
||||
public void startThreads() throws IOException {
|
||||
updateCurrentKey();
|
||||
running = true;
|
||||
tokenRemoverThread = new Daemon(new ExpiredTokenRemover());
|
||||
tokenRemoverThread.start();
|
||||
synchronized (this) {
|
||||
running = true;
|
||||
tokenRemoverThread = new Daemon(new ExpiredTokenRemover());
|
||||
tokenRemoverThread.start();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user