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 122AAC1DA for ; Fri, 18 May 2012 22:49:31 +0000 (UTC) Received: (qmail 69060 invoked by uid 500); 18 May 2012 22:49:30 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 69029 invoked by uid 500); 18 May 2012 22:49:30 -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 69021 invoked by uid 99); 18 May 2012 22:49:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 22:49:30 +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; Fri, 18 May 2012 22:49:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 582B1EC25 for ; Fri, 18 May 2012 22:49:09 +0000 (UTC) Date: Fri, 18 May 2012 22:49:09 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <1330149081.16954.1337381349362.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1888106026.9611.1335800750072.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5904) is_enabled from shell returns differently from pre- and post- HBASE-5155 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279279#comment-13279279 ] stack commented on HBASE-5904: ------------------------------ @Ram I will apply David's patch that backs hbase-5155 out of 0.90 tomorrow. Let us know if you have issue w/ that. > is_enabled from shell returns differently from pre- and post- HBASE-5155 > ------------------------------------------------------------------------ > > Key: HBASE-5904 > URL: https://issues.apache.org/jira/browse/HBASE-5904 > Project: HBase > Issue Type: Bug > Components: zookeeper > Affects Versions: 0.90.6 > Reporter: David S. Wang > Assignee: David S. Wang > Priority: Blocker > Fix For: 0.90.7 > > Attachments: HBASE-5904.patch > > > If I launch an hbase shell that uses HBase and ZooKeeper without HBASE-5155, against HBase servers with HBASE-5155, then is_enabled for a table always returns false even if the table is considered enabled by the servers from the logs. If I then do the same thing but with an HBase shell and ZooKeeper with HBASE-5155, then is_enabled returns as expected. > If I launch an HBase shell that uses HBase and ZooKeeper without HBASE-5155, against HBase servers also without HBASE-5155, then is_enabled works as you'd expect. But if I then do the same thing but with an HBase shell and ZooKeeper with HBASE-5155, then is_enabled returns false even though the table is considered enabled by the servers from the logs. > Additionally, if I then try to enable the table from the HBASE-5155-containing shell, it hangs because the ZooKeeper code waits for the ZNode to be updated with "ENABLED" in the data field, but what actually happens is that the ZNode gets deleted since the servers are running without HBASE-5155. > I think the culprit is that the indication of how a table is considered enabled inside ZooKeeper has changed with HBASE-5155. Before HBASE-5155, a table was considered enabled if the ZNode for it did not exist. After HBASE-5155, a table is considered enabled if the ZNode for it exists and has "ENABLED" in its data. I think the current code is incompatible when running clients and servers where one side has HBASE-5155 and the other side does not. -- 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