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

Remove some deadcode in BlockManager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • namenode
    • None

    Description

      BlockManager#DEFAULT_MAP_LOAD_FACTOR is deadcode. It no longer does anything since blocks are now stored in a GSet whose size is fixed.

      BlocksMap#blocks does not need to be volatile. Whenever it is accessed, it is accessed under the FSNamesystem lock. Furthermore, access to this data structure is not thread-safe.

      Attachments

        1. HDFS-5323.001.patch
          4 kB
          Colin McCabe

        Activity

          People

            cmccabe Colin McCabe
            cmccabe Colin McCabe
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: