hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4686) Fix quota computation for rename with snapshots
Date Tue, 23 Apr 2013 23:11:18 GMT

    [ https://issues.apache.org/jira/browse/HDFS-4686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639790#comment-13639790

Tsz Wo (Nicholas), SZE commented on HDFS-4686:

- In INodeDirectory.replaceChild, if oldChild.isReference()), it should replace the referred

- WithCount.referenceCount should be removed.  Use withNameList and parent to deduce the count.
 Also, rename incrementReferenceCount and decrementReferenceCount to addReference and remove

- Add a search method to AbstractINodeDiffList for searching snapshot.  It should use a binary
search but let's use a linear search for now.

> Fix quota computation for rename with snapshots
> -----------------------------------------------
>                 Key: HDFS-4686
>                 URL: https://issues.apache.org/jira/browse/HDFS-4686
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode, namenode
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>         Attachments: HDFS-4686.001.patch, HDFS-4686.001.patch, HDFS-4686.002.patch
> Currently after a rename operation within/from a snapshottable directory, a reference
node is created in both src and dst subtree, pointing to the original renamed inode. With
this change the original quota computation may count the quota usage of the renamed subtree
multiple times. This jira tries to fix this issue.

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

View raw message