Jing Zhao created HDFS-4637: ------------------------------- Summary: 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 Reporter: Jing Zhao Assignee: Jing Zhao Priority: Minor
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