You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2010/05/11 01:49:31 UTC

[jira] Updated: (HDFS-1141) completeFile does not check lease ownership

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

Todd Lipcon updated HDFS-1141:
------------------------------

    Attachment: hdfs-1141.txt

Here's a patch with just those test cases that apply to this bug from HDFS-1139.

Note: this does change the exception text coming out of completeFile to be more specific - now it actually contains "Lease mismatch" or "File is closed", etc, rather then the generic "Could not complete file" that it used to. I think this is a good thing, just wanted to note that it does have user-facing implications.

> completeFile does not check lease ownership
> -------------------------------------------
>
>                 Key: HDFS-1141
>                 URL: https://issues.apache.org/jira/browse/HDFS-1141
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.21.0
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Blocker
>         Attachments: hdfs-1141.txt
>
>
> completeFile should check that the caller still owns the lease of the file that it's completing. This is for the 'testCompleteOtherLeaseHoldersFile' case in HDFS-1139.

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