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 F0ADCE470 for ; Wed, 23 Jan 2013 04:24:15 +0000 (UTC) Received: (qmail 73295 invoked by uid 500); 23 Jan 2013 04:24:15 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 73049 invoked by uid 500); 23 Jan 2013 04:24:15 -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 72977 invoked by uid 99); 23 Jan 2013 04:24:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2013 04:24:13 +0000 Date: Wed, 23 Jan 2013 04:24:13 +0000 (UTC) From: "Suresh Srinivas (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-4426) Secondary namenode shuts down immediately after startup 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-4426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suresh Srinivas updated HDFS-4426: ---------------------------------- Attachment: HDFS-4426.patch Hopefully this time correctly rebased patch. > Secondary namenode shuts down immediately after startup > ------------------------------------------------------- > > Key: HDFS-4426 > URL: https://issues.apache.org/jira/browse/HDFS-4426 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 2.0.3-alpha, 0.23.6 > Reporter: Jason Lowe > Assignee: Arpit Agarwal > Priority: Blocker > Attachments: HDFS-4426.patch, HDFS-4426.patch, HDFS-4426.patch > > > After HADOOP-9181 went in, the secondary namenode immediately shuts down after it is started. From the startup logs: > {noformat} > 2013-01-22 19:54:28,826 INFO namenode.SecondaryNameNode (SecondaryNameNode.java:initialize(299)) - Checkpoint Period :3600 secs (60 min) > 2013-01-22 19:54:28,826 INFO namenode.SecondaryNameNode (SecondaryNameNode.java:initialize(301)) - Log Size Trigger :40000 txns > 2013-01-22 19:54:28,845 INFO namenode.SecondaryNameNode (StringUtils.java:run(616)) - SHUTDOWN_MSG: > /************************************************************ > SHUTDOWN_MSG: Shutting down SecondaryNameNode at xx > ************************************************************/ > {noformat} > I looked into the issue, and it's shutting down because SecondaryNameNode.main starts a bunch of daemon threads then returns. With nothing but daemon threads remaining, the JVM sees no reason to keep going and proceeds to shutdown. Apparently we were implicitly relying on the fact that the HttpServer QueuedThreadPool threads were not daemon threads to keep the secondary namenode process up. -- 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