Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58E39ECA6 for ; Thu, 6 Dec 2012 13:11:13 +0000 (UTC) Received: (qmail 59221 invoked by uid 500); 6 Dec 2012 13:11:12 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 59007 invoked by uid 500); 6 Dec 2012 13:11:11 -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 58647 invoked by uid 99); 6 Dec 2012 13:11:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 13:11:11 +0000 Date: Thu, 6 Dec 2012 13:11:11 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-4238) [HA] Standby namenode should not do purging of shared storage edits. 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-4238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511330#comment-13511330 ] Hudson commented on HDFS-4238: ------------------------------ Integrated in Hadoop-Hdfs-trunk #1246 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1246/]) HDFS-4238. Standby namenode should not do purging of shared storage edits. Contributed by Todd Lipcon. (Revision 1417651) Result = FAILURE todd : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1417651 Files : * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NameNodeAdapter.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java > [HA] Standby namenode should not do purging of shared storage edits. > -------------------------------------------------------------------- > > Key: HDFS-4238 > URL: https://issues.apache.org/jira/browse/HDFS-4238 > Project: Hadoop HDFS > Issue Type: Bug > Components: ha > Affects Versions: 3.0.0, 2.0.2-alpha > Reporter: Vinay > Assignee: Todd Lipcon > Fix For: 3.0.0, 2.0.3-alpha > > Attachments: hdfs-4238.txt, hdfs-4238.txt > > > This happened in our cluster, > >> Standby NN was keep doing checkpoint every one hour and uploading to Active NN was continuously failing due to some kerberos issue and nobody noticed this, since Active was servicing properly. > >> Active NN was up for long time with fsimage having very least transaction. > >> Standby NN has saved the checkpoint in its name dir and purged the txns > 1000000 from shared storage ( includes edits which are not present in Active NN's fsimage) > >> After some time Active NN is restarted and StandBy NN switched to Active. > Now current Standby not able to load any edits from shared storage, as expected edits are not present in shared storage. Its keep running idle. > So {{editLog.purgeLogsOlderThan(purgeLogsFrom);}} always should be called from Active NameNode. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira