[
https://issues.apache.org/jira/browse/HDFS-4637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz Wo (Nicholas), SZE updated HDFS-4637:
-----------------------------------------
Component/s: (was: datanode)
Hadoop Flags: Reviewed
+1 patch looks good.
> INodeDirectory#replaceSelf4Quota may convert a newly created directory (which
> is not included in the latest snapshot) to an INodeDirectoryWithSnapshot
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-4637
> URL: https://issues.apache.org/jira/browse/HDFS-4637
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Reporter: Jing Zhao
> Assignee: Jing Zhao
> Priority: Minor
> Attachments: HDFS-4637.001.patch, HDFS-4637.002.patch
>
>
> In INodeDirectory#replaceSelf4Quota, we convert the target node to
> INodeDirectoryWithSnapshot when the latest snapshot is not null. This may
> convert a directory, which was created after taking the latest snapshot, to
> an INodeDirectoryWithSnapshot. We thus should use INode#isInLatestSnapshot
> for checking here.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira