hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-1149) Lease reassignment is not persisted to edit log
Date Mon, 06 Jun 2011 18:14:59 GMT

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

Aaron T. Myers updated HDFS-1149:
---------------------------------

    Attachment: editsStored
                hdfs-1149.1.patch

Thanks a lot for the review, Todd.

Attached is an updated patch addressing Todd's comments.

I didn't add a test case for case "B", where the client deletes the file and then lease recovery
occurs, because this can't actually happen. If the client deletes the file before losing its
lease, the lease is removed from the set of leases the NN is keeping track of, so lease recovery
will never occur.

Note that {{TestOfflineEditsViewer}} will fail unless the {{editsStored}} file attached to
this JIRA is placed in {{src/test/hdfs/org/apache/hadoop/hdfs/tools/offlineEditsViewer/editsStored}}.

> Lease reassignment is not persisted to edit log
> -----------------------------------------------
>
>                 Key: HDFS-1149
>                 URL: https://issues.apache.org/jira/browse/HDFS-1149
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.21.0, 0.22.0, 0.23.0
>            Reporter: Todd Lipcon
>            Assignee: Aaron T. Myers
>             Fix For: 0.23.0
>
>         Attachments: editsStored, hdfs-1149.0.patch, hdfs-1149.1.patch
>
>
> During lease recovery, the lease gets reassigned to a special NN holder. This is not
currently persisted to the edit log, which means that after an NN restart, the original leaseholder
could end up allocating more blocks or completing a file that has already started recovery.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message