We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b431652 commit d664162Copy full SHA for d664162
hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AuthManager.java
@@ -19,7 +19,6 @@
19
20
import java.io.IOException;
21
import java.util.HashMap;
22
-import java.util.HashSet;
23
import java.util.List;
24
import java.util.Map;
25
import java.util.Set;
@@ -66,7 +65,7 @@ private static class PermissionCache<T extends Permission> {
66
65
67
void put(String name, T perm) {
68
synchronized (mutex) {
69
- Set<T> perms = cache.getOrDefault(name, new HashSet<>());
+ Set<T> perms = cache.getOrDefault(name, ConcurrentHashMap.newKeySet());
70
perms.add(perm);
71
cache.put(name, perms);
72
}
0 commit comments