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

Remove setBlocks API from INodeFile and misc code cleanup

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The public INodeFile#setBlocks API, when used outside INodeFile, is always called with null. Therefore we should replace it with a safer clearBlocks API. Also merging code cleanups from HDFS-7285 branch.

        Attachments

        1. HDFS-8751.01.patch
          6 kB
          Zhe Zhang
        2. HDFS-8751.00.patch
          5 kB
          Zhe Zhang

          Activity

            People

            • Assignee:
              zhz Zhe Zhang
              Reporter:
              zhz Zhe Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: