[
https://issues.apache.org/jira/browse/HDFS-4637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jing Zhao updated HDFS-4637:
----------------------------
Attachment: HDFS-4637.002.patch
Thanks for the comments Nicholas! Update the patch to add the license header.
> 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: datanode, 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