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 A1731D796 for ; Tue, 28 Aug 2012 12:37:15 +0000 (UTC) Received: (qmail 19284 invoked by uid 500); 28 Aug 2012 12:37:15 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 18108 invoked by uid 500); 28 Aug 2012 12:37:09 -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 17790 invoked by uid 99); 28 Aug 2012 12:37:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Aug 2012 12:37:07 +0000 Date: Tue, 28 Aug 2012 23:37:07 +1100 (NCT) From: "liang xie (JIRA)" To: issues@hbase.apache.org Message-ID: <2019269848.5830.1346157427613.JavaMail.jiratomcat@arcas> In-Reply-To: <362720343.31175.1324396050665.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5076) HBase shell hangs when creating some 'illegal' tables. 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-5076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443117#comment-13443117 ] liang xie commented on HBASE-5076: ---------------------------------- After enable hbase-shell debug log, found there's an infinite loop in metaScan method for some special tablenames: {code} do { ... if (rrs == null || rrs.length == 0 || rrs[0].size() == 0) { break; //exit completely } ... startRow = callable.getHRegionInfo().getEndKey(); ... } while (Bytes.compareTo(startRow, HConstants.LAST_ROW) != 0); {code} Maybe a feasible fix is to filter some system-reserved tablenames in HTableDescriptor.isLegalTableName. I can try to give a trivial patch if you or other experts agree:) > HBase shell hangs when creating some 'illegal' tables. > ------------------------------------------------------ > > Key: HBASE-5076 > URL: https://issues.apache.org/jira/browse/HBASE-5076 > Project: HBase > Issue Type: Bug > Components: shell > Affects Versions: 0.92.0 > Reporter: Jonathan Hsieh > Priority: Minor > > In hbase shell. These commands hang: > {code} > create 'hbase.version','foo' > create 'splitlog','foo' > {code} > Interestingly > {code} > create 'hbase.id','foo' > create existingtablename, 'foo' > create '.META.','foo' > create '-ROOT-','foo' > {code} > are properly rejected. > We should probably either rename to make the files illegal table names (hbase.version to .hbase.version and splitlog to .splitlog) or we could add more special cases. -- 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