Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 34927 invoked from network); 9 May 2010 06:51:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 May 2010 06:51:17 -0000 Received: (qmail 67915 invoked by uid 500); 9 May 2010 06:51:17 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 67823 invoked by uid 500); 9 May 2010 06:51:16 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 67815 invoked by uid 99); 9 May 2010 06:51:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 May 2010 06:51:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 May 2010 06:51:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o496oqqG011766 for ; Sun, 9 May 2010 06:50:52 GMT Message-ID: <17292383.54971273387852209.JavaMail.jira@thor> Date: Sun, 9 May 2010 02:50:52 -0400 (EDT) From: "dhruba borthakur (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1137) Name node is using the write-ahead log improperly In-Reply-To: <1339815.42691273276310147.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12865563#action_12865563 ] dhruba borthakur commented on HDFS-1137: ---------------------------------------- @Ben, let's walk through with an example. Suppose a request comes in to create a file foo.txt. Now, we need to insert it into the namespace and we need to ensure that new calls to create the same file should fail. When the first request arrives, we have to insert it into some kind of data structure, so that the next suceeding call detects that a file creation operation for the same file is in progress, isn't it? > Name node is using the write-ahead log improperly > ------------------------------------------------- > > Key: HDFS-1137 > URL: https://issues.apache.org/jira/browse/HDFS-1137 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Reporter: Benjamin Reed > > The Name node is doing the write-ahead log (WAL) (aka edit log) improperly. Usually when using WAL, changes are written to the log before they are applied to the state. Currently the Namenode does the WAL after applying the change. This means that read may see changes before they are durable. A client may read information and the server fail before the information is written to the WAL, which results in the client reading state that disappears. To fix the Namenode should write changes before (aka ahead of) applying the change. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.