You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Yiqun Lin (JIRA)" <ji...@apache.org> on 2018/10/05 08:29:00 UTC

[jira] [Created] (HDFS-13962) Add null check for add-replica pool to avoid lock acquiring

Yiqun Lin created HDFS-13962:
--------------------------------

             Summary: Add null check for add-replica pool to avoid lock acquiring
                 Key: HDFS-13962
                 URL: https://issues.apache.org/jira/browse/HDFS-13962
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 3.1.1
            Reporter: Yiqun Lin


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 message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org