Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Done
-
None
Description
There is a class NodeStateMap with 3 fields:
- ConcurrentHashMap<UUID, DatanodeInfo> nodeMap
- ConcurrentHashMap<UUID, Set<ContainerID>> nodeToContainer
- private final ReadWriteLock lock
Both read and write in NodeStateMap are protected by lock.
We can safely replace ConcurrentHashMap with pure HashMap
Attachments
Issue Links
- links to