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

Remove some deadcode in BlockManager

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: