[
https://issues.apache.org/jira/browse/HDFS-17199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17766283#comment-17766283
]
farmmamba commented on HDFS-17199:
----------------------------------
I found two replicas methods in class ReplicaMap. One is thread-safe and
another is not.
The one which is not thread-safe is used in readReplicasFromCache. Although
there is not race condition problem here, I think we'dÂ
better drop the non-thread-safe replicas method and only keep the thread-safe
one left.
> LightWeightResizableGSet#values() seems not thread-safe.
> --------------------------------------------------------
>
> Key: HDFS-17199
> URL: https://issues.apache.org/jira/browse/HDFS-17199
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: datanode
> Affects Versions: 3.4.0
> Reporter: farmmamba
> Assignee: farmmamba
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]