Details
Description
This is a follow-up work for HDFS-13768. Mainly two places needed to update:
- Add null check for add-replica pool to avoid lock acquiring
- In ReplicaMap#addAndGet, it would be better to use FoldedTreeSet#addOrReplace instead of FoldedTreeSet#add for adding replica info. This is for the logic consistentency with add operation
Attachments
Attachments
Issue Links
- relates to
-
HDFS-13768 Adding replicas to volume map makes DataNode start slowly
- Resolved