Replies: 2 comments 1 reply
-
@nandakumar131 may remember, but on first look it seems plain |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Montura you are right. Please go ahead and file a Jira in Apache. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Example:
It has 3 fields:
ConcurrentHashMap<UUID, DatanodeInfo> nodeMap
ConcurrentHashMap<UUID, Set<ContainerID>> nodeToContainer
private final ReadWriteLock lock
Both
read
andwrite
operations inNodeStateMap
are protected bylock
.There is a question:
ConcurrentHashMap
here instead ofHashMap
, if allmethods
are protected?Beta Was this translation helpful? Give feedback.
All reactions