[
https://issues.apache.org/jira/browse/HDFS-9527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15049398#comment-15049398
]
Tsz Wo Nicholas Sze commented on HDFS-9527:
-------------------------------------------
Thanks, Jing. Will fix TestClientProtocolForPipelineRecovery.
On a second thought, we should change Namesystem.isInSnapshot to pass
blockCollectionID and should not change getBlockCollection. Then, Namesystem
no longer uses BlockInfo.
> The return type of FSNamesystem.getBlockCollection should be changed to
> INodeFile
> ---------------------------------------------------------------------------------
>
> Key: HDFS-9527
> URL: https://issues.apache.org/jira/browse/HDFS-9527
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: namenode
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Tsz Wo Nicholas Sze
> Priority: Minor
> Attachments: h9527_20151208.patch
>
>
> FSNamesystem.getBlockCollection always returns INodeFile. It avoids
> unnecessary conversion from BlockCollection to INode/INodeFile after the
> change.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)