[ https://issues.apache.org/jira/browse/HDFS-4637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE resolved HDFS-4637. ------------------------------------------ Resolution: Fixed Fix Version/s: Snapshot (HDFS-2802) I have committed this. Thanks, Jing! > 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 > Fix For: Snapshot (HDFS-2802) > > 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