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 8A3F19917 for ; Wed, 1 Feb 2012 00:47:19 +0000 (UTC) Received: (qmail 32203 invoked by uid 500); 1 Feb 2012 00:47:19 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 32092 invoked by uid 500); 1 Feb 2012 00:47:19 -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 32069 invoked by uid 99); 1 Feb 2012 00:47:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 00:47:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 00:47:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 22093167719 for ; Wed, 1 Feb 2012 00:46:57 +0000 (UTC) Date: Wed, 1 Feb 2012 00:46:57 +0000 (UTC) From: "Jimmy Xiang (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1135518420.732.1328057217140.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <912938270.80726.1327578821979.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5281) Should a failure in creating an unassigned node abort the master? 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-5281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197440#comment-13197440 ] Jimmy Xiang commented on HBASE-5281: ------------------------------------ I think it is safer to retry certain times before abort. > Should a failure in creating an unassigned node abort the master? > ----------------------------------------------------------------- > > Key: HBASE-5281 > URL: https://issues.apache.org/jira/browse/HBASE-5281 > Project: HBase > Issue Type: Bug > Components: master > Affects Versions: 0.90.5 > Reporter: Harsh J > Assignee: Harsh J > Fix For: 0.94.0, 0.92.1 > > Attachments: HBASE-5281.patch > > > In {{AssignmentManager}}'s {{CreateUnassignedAsyncCallback}}, we have the following condition: > {code} > if (rc != 0) { > // Thisis resultcode. If non-zero, need to resubmit. > LOG.warn("rc != 0 for " + path + " -- retryable connectionloss -- " + > "FIX see http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A2"); > this.zkw.abort("Connectionloss writing unassigned at " + path + > ", rc=" + rc, null); > return; > } > {code} > While a similar structure inside {{ExistsUnassignedAsyncCallback}} (which the above is linked to), does not have such a force abort. > Do we really require the abort statement here, or can we make do without? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira