hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2759) Pre-allocate HDFS edit log files after writing version number
Date Fri, 27 Jan 2012 21:00:13 GMT

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

Aaron T. Myers commented on HDFS-2759:
--------------------------------------

bq. So I think we're OK here.

Awesome. I agree with your analysis.

bq. I remember you ran a benchmark at some point to check for edit log throughput - if you
have that around still would you mind re-running to make sure this doesn't cause any unforeseen
regression?

I bet I can dig that up and will be happy to run it again with this patch.
                
> Pre-allocate HDFS edit log files after writing version number
> -------------------------------------------------------------
>
>                 Key: HDFS-2759
>                 URL: https://issues.apache.org/jira/browse/HDFS-2759
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: ha, name-node
>    Affects Versions: 0.24.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HDFS-2759.patch, HDFS-2759.patch
>
>
> In HDFS-2709 it was discovered that there's a potential race wherein edits log files
are pre-allocated before the version number is written into the header of the file. This can
cause the NameNode to read an invalid HDFS layout version, and hence fail to read the edit
log file. We should write the header, then pre-allocate the rest of the file after this point.

--
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

        

Mime
View raw message