hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2773) HA: reading edit logs from an earlier version leaves blocks in under-construction state
Date Wed, 11 Jan 2012 12:55:40 GMT

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

Hudson commented on HDFS-2773:

Integrated in Hadoop-Hdfs-HAbranch-build #44 (See [https://builds.apache.org/job/Hadoop-Hdfs-HAbranch-build/44/])
    HDFS-2773. Reading edit logs from an earlier version should not leave blocks in under-construction
state. Contributed by Todd Lipcon.

todd : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1229900
Files : 
* /hadoop/common/branches/HDFS-1623/hadoop-hdfs-project/hadoop-hdfs/CHANGES.HDFS-1623.txt
* /hadoop/common/branches/HDFS-1623/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java
* /hadoop/common/branches/HDFS-1623/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeFileUnderConstruction.java
* /hadoop/common/branches/HDFS-1623/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestPersistBlocks.java
* /hadoop/common/branches/HDFS-1623/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/hadoop-1.0-multiblock-file.tgz

> HA: reading edit logs from an earlier version leaves blocks in under-construction state
> ---------------------------------------------------------------------------------------
>                 Key: HDFS-2773
>                 URL: https://issues.apache.org/jira/browse/HDFS-2773
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ha, name-node
>    Affects Versions: HA branch (HDFS-1623)
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Blocker
>             Fix For: HA branch (HDFS-1623)
>         Attachments: hadoop-1.0-multiblock-file.tgz, hdfs-2773.txt
> In HDFS-2602, the code for applying OP_ADD and OP_CLOSE was changed a bit, and the new
code has the following problem: if an OP_CLOSE includes new blocks (ie not previously seen
in an OP_ADD) then those blocks will remain in the "under construction" state rather than
being marked "complete". This is because {{updateBlocks}} always creates {{BlockInfoUnderConstruction}}
regardless of the opcode. This bug only affects the upgrade path, since in trunk we always
persist blocks with OP_ADDs before we call OP_CLOSE.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message