Return-Path: X-Original-To: apmail-hadoop-hdfs-commits-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DEEE86F04 for ; Mon, 25 Jul 2011 20:31:31 +0000 (UTC) Received: (qmail 13755 invoked by uid 500); 25 Jul 2011 20:31:31 -0000 Delivered-To: apmail-hadoop-hdfs-commits-archive@hadoop.apache.org Received: (qmail 13696 invoked by uid 500); 25 Jul 2011 20:31:31 -0000 Mailing-List: contact hdfs-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-commits@hadoop.apache.org Received: (qmail 13683 invoked by uid 99); 25 Jul 2011 20:31:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 20:31:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 20:31:30 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1142B2388A3B; Mon, 25 Jul 2011 20:31:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1150891 - /hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java Date: Mon, 25 Jul 2011 20:31:09 -0000 To: hdfs-commits@hadoop.apache.org From: todd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110725203110.1142B2388A3B@eris.apache.org> Author: todd Date: Mon Jul 25 20:31:09 2011 New Revision: 1150891 URL: http://svn.apache.org/viewvc?rev=1150891&view=rev Log: Change BackupImage.BNState comments to be JavaDoc Part of response to Konstantin's review. Modified: hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java Modified: hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java?rev=1150891&r1=1150890&r2=1150891&view=diff ============================================================================== --- hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java (original) +++ hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java Mon Jul 25 20:31:09 2011 @@ -58,14 +58,20 @@ public class BackupImage extends FSImage */ volatile BNState bnState; static enum BNState { - // Edits from the NN should be dropped. On the next log roll, - // transition to JOURNAL_ONLY state + /** + * Edits from the NN should be dropped. On the next log roll, + * transition to JOURNAL_ONLY state + */ DROP_UNTIL_NEXT_ROLL, - // Edits from the NN should be written to the local edits log - // but not applied to the namespace. + /** + * Edits from the NN should be written to the local edits log + * but not applied to the namespace. + */ JOURNAL_ONLY, - // Edits should be written to the local edits log and applied - // to the local namespace. + /** + * Edits should be written to the local edits log and applied + * to the local namespace. + */ IN_SYNC; }