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

NameNodeFsck should use only one instance of BlockPlacementPolicy

    XMLWordPrintableJSON

    Details

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

      Description

      While going through NameNodeFsck I found that following code creates the new instance of BlockPlacementPolicy for every block.

            // verify block placement policy
            BlockPlacementStatus blockPlacementStatus = 
                BlockPlacementPolicy.getInstance(conf, null, networktopology).
                    verifyBlockPlacement(path, lBlk, targetFileReplication);

      It would be better to use the namenode's BPP itself instead of creating a new one.

        Attachments

        1. HDFS-5581.patch
          2 kB
          Vinayakumar B
        2. HDFS-5581.patch
          2 kB
          Vinayakumar B

          Activity

            People

            • Assignee:
              vinayakumarb Vinayakumar B
              Reporter:
              vinayakumarb Vinayakumar B
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: