hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8751) Remove setBlocks API from INodeFile and misc code cleanup
Date Sat, 11 Jul 2015 15:42:07 GMT

    [ https://issues.apache.org/jira/browse/HDFS-8751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623459#comment-14623459
] 

Hudson commented on HDFS-8751:
------------------------------

SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2199 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2199/])
HDFS-8751. Remove setBlocks API from INodeFile and misc code cleanup. Contributed by Zhe Zhang
(jing9: rev 47f4c54106ebb234a7d3dc71320aa584ecba161a)
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeFile.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestINodeFile.java
* hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirConcatOp.java


> Remove setBlocks API from INodeFile and misc code cleanup
> ---------------------------------------------------------
>
>                 Key: HDFS-8751
>                 URL: https://issues.apache.org/jira/browse/HDFS-8751
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.7.0
>            Reporter: Zhe Zhang
>            Assignee: Zhe Zhang
>             Fix For: 2.8.0
>
>         Attachments: HDFS-8751.00.patch, HDFS-8751.01.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message