[
https://issues.apache.org/jira/browse/HDFS-15319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17097760#comment-17097760
]
Tsz-wo Sze commented on HDFS-15319:
-----------------------------------
The test failures seem related. When parent.isReference() == true, it probably
needs to be handled differently.
> Fix INode#isInLatestSnapshot() API
> ----------------------------------
>
> Key: HDFS-15319
> URL: https://issues.apache.org/jira/browse/HDFS-15319
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: snapshots
> Reporter: Shashikant Banerjee
> Assignee: Shashikant Banerjee
> Priority: Major
> Attachments: HDFS-15319.000.patch
>
>
> isInLatestSnapshot() may return true in cases where an inode's ancesstors
> might not be in the latest snapshot.
> {code:java}
> // if parent is a reference node, parent must be a renamed node. We can
> // stop the check at the reference node.
> if (parent != null && parent.isReference()) {
> // TODO: Is it a bug to return true?
> // Some ancestor nodes may not be in the latest snapshot.
> return true;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]