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
|
HADOOP-7045. TestDU fails on systems with local file systems with
|
||||||
extended attributes. (eli)
|
extended attributes. (eli)
|
||||||
|
|
||||||
|
HADOOP-6939. Inconsistent lock ordering in
|
||||||
|
AbstractDelegationTokenSecretManager. (Todd Lipcon via tomwhite)
|
||||||
|
|
||||||
Release 0.22.0 - Unreleased
|
Release 0.22.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -95,12 +95,14 @@ extends AbstractDelegationTokenIdentifier>
|
||||||
}
|
}
|
||||||
|
|
||||||
/** should be called before this object is used */
|
/** should be called before this object is used */
|
||||||
public synchronized void startThreads() throws IOException {
|
public void startThreads() throws IOException {
|
||||||
updateCurrentKey();
|
updateCurrentKey();
|
||||||
|
synchronized (this) {
|
||||||
running = true;
|
running = true;
|
||||||
tokenRemoverThread = new Daemon(new ExpiredTokenRemover());
|
tokenRemoverThread = new Daemon(new ExpiredTokenRemover());
|
||||||
tokenRemoverThread.start();
|
tokenRemoverThread.start();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a previously used master key to cache (when NN restarts),
|
* Add a previously used master key to cache (when NN restarts),
|
||||||
|
|
Loading…
Reference in New Issue