Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13962

Add null check for add-replica pool to avoid lock acquiring

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.2.0, 3.1.2, 3.3.0
    • None
    • None

    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

        1. HDFS-13962.01.patch
          2 kB
          Surendra Singh Lilhore

        Issue Links

          Activity

            People

              surendralilhore Surendra Singh Lilhore
              linyiqun Yiqun Lin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: