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 97B55D7E6 for ; Thu, 23 Aug 2012 09:25:44 +0000 (UTC) Received: (qmail 81328 invoked by uid 500); 23 Aug 2012 09:25:44 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 81290 invoked by uid 500); 23 Aug 2012 09:25:44 -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 81231 invoked by uid 99); 23 Aug 2012 09:25:42 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2012 09:25:42 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3F2042C0907 for ; Thu, 23 Aug 2012 09:25:42 +0000 (UTC) Date: Thu, 23 Aug 2012 20:25:42 +1100 (NCT) From: "ramkrishna.s.vasudevan (JIRA)" To: issues@hbase.apache.org Message-ID: <1349899045.4765.1345713942259.JavaMail.jiratomcat@arcas> In-Reply-To: <1485365482.112133.1343429194981.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HBASE-6469) Failure on enable/disable table will cause table state in zk to be left as enabling/disabling until master is restart 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-6469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440174#comment-13440174 ] ramkrishna.s.vasudevan commented on HBASE-6469: ----------------------------------------------- HBCK also does not handle this case. It only tries to assign or unassign based on ENABLING/DISABLING but does not set the state of the table. > Failure on enable/disable table will cause table state in zk to be left as enabling/disabling until master is restart > --------------------------------------------------------------------------------------------------------------------- > > Key: HBASE-6469 > URL: https://issues.apache.org/jira/browse/HBASE-6469 > Project: HBase > Issue Type: Bug > Affects Versions: 0.96.0, 0.94.2 > Reporter: Enis Soztutar > Assignee: Enis Soztutar > Fix For: 0.94.2 > > > In Enable/DisableTableHandler code, if something goes wrong in handling, the table state in zk is left as ENABLING / DISABLING. After that we cannot force any more action from the API or CLI, and the only recovery path is restarting the master. > {code} > if (done) { > // Flip the table to enabled. > this.assignmentManager.getZKTable().setEnabledTable( > this.tableNameStr); > LOG.info("Table '" + this.tableNameStr > + "' was successfully enabled. Status: done=" + done); > } else { > LOG.warn("Table '" + this.tableNameStr > + "' wasn't successfully enabled. Status: done=" + done); > } > {code} > Here, if done is false, the table state is not changed. There is also no way to set skipTableStateCheck from cli / api. > We have run into this issue a couple of times before. -- 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