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

NameNodeFsck should use only one instance of BlockPlacementPolicy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • namenode
    • None

    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

            vinayakumarb Vinayakumar B
            vinayakumarb Vinayakumar B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: