farmmamba created HDFS-17203:
--------------------------------
Summary: ReplicaMap#map should better use ConcurrentHashMap rather
than HashMap
Key: HDFS-17203
URL: https://issues.apache.org/jira/browse/HDFS-17203
Project: Hadoop HDFS
Issue Type: Improvement
Components: datanode
Affects Versions: 3.4.0
Reporter: farmmamba
Even though we use BP write lock in ReplicaMap#initBlockPool method to initial
<bpid,lightWeightResizableGSet> entry, we'd better change ReplicaMap#map from
HashMap to ConcurrentHashMap. Because in ReplicaMap#add or ReplicaMap#addAndGet
methods, we only use BP read lock to protect initialization.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]