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

Minor cleanup of BlockPoolManager#getAllNamenodeThreads

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • 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.01.patch
          17 kB
          Arpit Agarwal
        2. HDFS-7944.02.patch
          17 kB
          Arpit Agarwal

        Activity

          People

            arp Arpit Agarwal
            arp Arpit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: