Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 71E88E3EA for ; Wed, 30 Jan 2013 04:51:19 +0000 (UTC) Received: (qmail 38023 invoked by uid 500); 30 Jan 2013 04:51:19 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 37682 invoked by uid 500); 30 Jan 2013 04:51:17 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 37305 invoked by uid 99); 30 Jan 2013 04:51:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2013 04:51:15 +0000 Date: Wed, 30 Jan 2013 04:51:14 +0000 (UTC) From: "Uma Maheswara Rao G (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7715) FSUtils#waitOnSafeMode can incorrectly loop on standby NN 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/HBASE-7715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13566161#comment-13566161 ] Uma Maheswara Rao G commented on HBASE-7715: -------------------------------------------- In DistributedFileSystem there is another API that can be used as Util API. That is defaulting that flag as true. {code} public boolean isInSafeMode() throws IOException { return setSafeMode(SafeModeAction.SAFEMODE_GET, true); } {code} Yes, we found this issue some time back. Here is the JIRA HDFS-3507. This was committed in 2.0.3. > FSUtils#waitOnSafeMode can incorrectly loop on standby NN > --------------------------------------------------------- > > Key: HBASE-7715 > URL: https://issues.apache.org/jira/browse/HBASE-7715 > Project: HBase > Issue Type: Bug > Affects Versions: 0.94.4 > Reporter: Andrew Wang > Assignee: Ted Yu > Fix For: 0.96.0 > > Attachments: 7715-trunk-v2.txt > > > We encountered an issue where HMaster failed to start with an active NN not in safe mode and a standby NN in safemode. The relevant lines in {{FSUtils.java}} show the issue: > {noformat} > while (dfs.setSafeMode(org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction.SAFEMODE_GET)) { > {noformat} > This call skips the normal client failover from the standby to active NN, so it will loop polling the standby NN if it unfortunately talks to the standby first. -- 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