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

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.2.0, 3.1.2, 3.3.0
    • Component/s: None
    • Labels:
      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

            • Assignee:
              surendrasingh Surendra Singh Lilhore
              Reporter:
              linyiqun Yiqun Lin

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment