From 9d14f100c803be4dda557b586269a50301e8bd2a Mon Sep 17 00:00:00 2001 From: Matthew Foley Date: Tue, 20 Sep 2011 00:26:32 +0000 Subject: [PATCH] HDFS-2347. Fix checkpointTxnCount's comment about editlog size. Contributed by Uma Maheswara Rao G. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1172916 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../org/apache/hadoop/hdfs/server/namenode/Checkpointer.java | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index e8af487aa6..459d2325d2 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -758,6 +758,9 @@ Release 0.23.0 - Unreleased BUG FIXES + HDFS-2347. Fix checkpointTxnCount's comment about editlog size. + (Uma Maheswara Rao G via mattf) + HDFS-2011. Removal and restoration of storage directories on checkpointing failure doesn't work properly. (Ravi Prakash via mattf) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/Checkpointer.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/Checkpointer.java index 5e544c6695..ea3863ca1e 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/Checkpointer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/Checkpointer.java @@ -60,7 +60,8 @@ class Checkpointer extends Daemon { private BackupNode backupNode; volatile boolean shouldRun; private long checkpointPeriod; // in seconds - private long checkpointTxnCount; // size (in MB) of current Edit Log + // Transactions count to trigger the checkpoint + private long checkpointTxnCount; private String infoBindAddress; @@ -108,7 +109,7 @@ private void initialize(Configuration conf) throws IOException { LOG.info("Checkpoint Period : " + checkpointPeriod + " secs " + "(" + checkpointPeriod/60 + " min)"); - LOG.info("Log Size Trigger : " + checkpointTxnCount + " txns "); + LOG.info("Transactions count is : " + checkpointTxnCount + ", to trigger checkpoint"); } /**