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

Minor cleanup of BlockPoolManager#getAllNamenodeThreads

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      BlockPoolManager#getAllNamenodeThreads can avoid unnecessary list to array conversion and vice versa by returning an unmodifiable list.

      Since NN addition/removal is relatively rare we can just use a CopyOnWriteArrayList for concurrency.

        Attachments

        1. HDFS-7944.02.patch
          17 kB
          Arpit Agarwal
        2. HDFS-7944.01.patch
          17 kB
          Arpit Agarwal

          Activity

            People

            • Assignee:
              arpitagarwal Arpit Agarwal
              Reporter:
              arpitagarwal Arpit Agarwal
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: