Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 51072 invoked from network); 29 Apr 2010 01:37:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Apr 2010 01:37:13 -0000 Received: (qmail 1722 invoked by uid 500); 29 Apr 2010 01:37:13 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 1688 invoked by uid 500); 29 Apr 2010 01:37:13 -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 1680 invoked by uid 99); 29 Apr 2010 01:37:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Apr 2010 01:37:13 +0000 X-ASF-Spam-Status: No, hits=-1363.9 required=10.0 tests=ALL_TRUSTED,AWL 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; Thu, 29 Apr 2010 01:37:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3T1aqq1021308 for ; Thu, 29 Apr 2010 01:36:52 GMT Message-ID: <1506660.14071272505012000.JavaMail.jira@thor> Date: Wed, 28 Apr 2010 21:36:51 -0400 (EDT) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1104) Fsck triggers full GC on NameNode In-Reply-To: <7896447.125441271887974133.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862050#action_12862050 ] Tsz Wo (Nicholas), SZE commented on HDFS-1104: ---------------------------------------------- - The unit test may not work since there is a FSNamesystem.accessTimePrecision. - NameNode.getBlockLocationsNoATime(..) does not check permission. > Fsck triggers full GC on NameNode > --------------------------------- > > Key: HDFS-1104 > URL: https://issues.apache.org/jira/browse/HDFS-1104 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.21.0 > Reporter: Hairong Kuang > Assignee: Hairong Kuang > Fix For: 0.22.0 > > Attachments: fsckATime.patch, fsckATime1.patch > > > A NameNode at one of our clusters fell into full GC while fsck was performed. Digging into the problem shows that it is caused by how NameNode handles the access time of a file. > Fsck calls open on every file in the checked directory to get the file's block locations. Each open changes the file's access time and then leads to writing a transaction entry to the edit log. The current code optimizes open so that it returns without issuing synchronizing the edit log to the disk. It happened that in our cluster no other jobs were running while fsck was performed. No edit log sync was ever called. So all open transactions were kept in memory. When the edit log buffer got full, it automatically doubled its space by allocating a new buffer. Full GC happened when no contiguous space were found when allocating a new bigger buffer. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.