hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-677) Rename failure due to quota results in deletion of src directory
Date Thu, 08 Oct 2009 22:31:31 GMT

     [ https://issues.apache.org/jira/browse/HDFS-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Suresh Srinivas updated HDFS-677:
---------------------------------

    Attachment: hdfs-677.8.patch

Here is the approach:
# Current rename implementation removes the src and while moving it to dst, if failure is
encountered it adds the src back. This change, before removing src from directory tree, ensures
the dst has quota and other conditions needed for rename to succeed is met.
# During rename after the src is removed, any failure to complete rename is handled by adding
src back without checking for quota.
# Previous version of the code threw QuotaExceededException from FSDirectory.removeChild().
This was unnecessary since the quota was being freed and the exception would never occur.
This method no longer throws exception.

> Rename failure due to quota results in deletion of src directory
> ----------------------------------------------------------------
>
>                 Key: HDFS-677
>                 URL: https://issues.apache.org/jira/browse/HDFS-677
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.20.1, 0.20.2, 0.21.0, 0.22.0
>            Reporter: Suresh Srinivas
>            Assignee: Suresh Srinivas
>            Priority: Blocker
>             Fix For: 0.20.2, 0.21.0, 0.22.0
>
>         Attachments: hdfs-677.8.patch
>
>
> Renaming src to destination where src has exceeded the quota to a dst without sufficent
quota fails. During this failure, src is deleted. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message