MAPREDUCE-3531. Fixed a race in ContainerTokenSecretManager. (Contributed by Robert Joseph Evans)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1214593 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cfbde6ac0f
commit
14ba2e65c9
@ -305,6 +305,9 @@ Release 0.23.1 - Unreleased
|
||||
MAPREDUCE-3484. Fixed JobEndNotifier to not get interrupted before completing
|
||||
all its retries. (Ravi Prakash via vinodkv)
|
||||
|
||||
MAPREDUCE-3531. Fixed a race in ContainerTokenSecretManager. (Robert Joseph
|
||||
Evans via sseth)
|
||||
|
||||
Release 0.23.0 - 2011-11-01
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -18,8 +18,8 @@
|
||||
|
||||
package org.apache.hadoop.yarn.server.security;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import javax.crypto.SecretKey;
|
||||
|
||||
@ -34,8 +34,8 @@ public class ContainerTokenSecretManager extends
|
||||
private static Log LOG = LogFactory
|
||||
.getLog(ContainerTokenSecretManager.class);
|
||||
|
||||
private Map<String, SecretKey> secretkeys =
|
||||
new HashMap<String, SecretKey>();
|
||||
Map<String, SecretKey> secretkeys =
|
||||
new ConcurrentHashMap<String, SecretKey>();
|
||||
|
||||
// Used by master for generation of secretyKey per host
|
||||
public SecretKey createAndGetSecretKey(CharSequence hostName) {
|
||||
|
Loading…
Reference in New Issue
Block a user