Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 76595 invoked from network); 16 Apr 2011 16:30:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2011 16:30:44 -0000 Received: (qmail 51447 invoked by uid 500); 16 Apr 2011 16:30:44 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 51414 invoked by uid 500); 16 Apr 2011 16:30:44 -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 51406 invoked by uid 99); 16 Apr 2011 16:30:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 16:30:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 16:30:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B5D73A4D4B for ; Sat, 16 Apr 2011 16:30:05 +0000 (UTC) Date: Sat, 16 Apr 2011 16:30:05 +0000 (UTC) From: "Ashwin Giridharan (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <801872361.62434.1302971405741.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <8648628.187191294318606445.JavaMail.jira@thor> Subject: [jira] [Commented] (HDFS-1572) Checkpointer should trigger checkpoint with specified period. 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-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020628#comment-13020628 ] Ashwin Giridharan commented on HDFS-1572: ----------------------------------------- As per the current solution, if 'periodMS' is configured as '6 mins', then checkpoint will happen only at 10th minute , because of 'fiveMinMS'. Instead we can optimize these two default values, such that the wait will be happening for only LCM('periodMS','fiveMinMS') period , rather than MIN('periodMS','fiveMinMS') > Checkpointer should trigger checkpoint with specified period. > ------------------------------------------------------------- > > Key: HDFS-1572 > URL: https://issues.apache.org/jira/browse/HDFS-1572 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 0.22.0 > Reporter: Liyin Liang > Assignee: Jakob Homan > Priority: Blocker > Fix For: 0.22.0 > > Attachments: 1527-1.diff, 1572-2.diff, HDFS-1572-2.patch, HDFS-1572-3.patch, HDFS-1572.patch > > > {code:} > long now = now(); > boolean shouldCheckpoint = false; > if(now >= lastCheckpointTime + periodMSec) { > shouldCheckpoint = true; > } else { > long size = getJournalSize(); > if(size >= checkpointSize) > shouldCheckpoint = true; > } > {code} > {dfs.namenode.checkpoint.period} in configuration determines the period of checkpoint. However, with above code, the Checkpointer triggers a checkpoint every 5 minutes (periodMSec=5*60*1000). According to SecondaryNameNode.java, the first *if* statement should be: > {code:} > if(now >= lastCheckpointTime + 1000 * checkpointPeriod) { > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira