Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 951846002 for ; Sat, 23 Jul 2011 04:31:53 +0000 (UTC) Received: (qmail 85567 invoked by uid 500); 23 Jul 2011 04:31:53 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 85030 invoked by uid 500); 23 Jul 2011 04:31:46 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 85021 invoked by uid 99); 23 Jul 2011 04:31:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jul 2011 04:31:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of saint.ack@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qy0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jul 2011 04:31:37 +0000 Received: by qyk4 with SMTP id 4so2065763qyk.14 for ; Fri, 22 Jul 2011 21:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+9sJRpfvU5FM1D+Xt8+kvXRrRv8/1651kagIWag5jlM=; b=B/pQhwRfKAHtZ49zaWhbkY0OEJ2cu35JXWN/G0jXtBCDfBGzBP0z2n3GxlC/9RqhTr QcGosVkyOb3aZMyLQIVy3/xC+nsv6ajbynn/439nK5K3ogCN6hwokB6Q979azaeDIIAt 812+OlSezW6rPRGyDQzp18RGoLAEIga15SjeY= MIME-Version: 1.0 Received: by 10.224.182.201 with SMTP id cd9mr1927089qab.36.1311395476662; Fri, 22 Jul 2011 21:31:16 -0700 (PDT) Sender: saint.ack@gmail.com Received: by 10.224.74.85 with HTTP; Fri, 22 Jul 2011 21:31:16 -0700 (PDT) In-Reply-To: References: <111361737.15600.1311367737810.JavaMail.tomcat@hel.zones.apache.org> <150237820.396.1311377229591.JavaMail.tomcat@hel.zones.apache.org> Date: Fri, 22 Jul 2011 21:31:16 -0700 X-Google-Sender-Auth: UvavZGdWqvcxhBH-99whKpX5v-A Message-ID: Subject: Re: [jira] [Commented] (HBASE-4127) HBaseAdmin : Don't modify table's name away From: Stack To: dev@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Try your proposal. I don't think it will work. It'll fail over in RPC where expectation is that there is a null/default constructor on every Writable. St.Ack On Fri, Jul 22, 2011 at 9:24 PM, Ted Yu wrote: > My proposal below would make default HTableDescriptor ctor package privat= e. > > If there is no object, I will log a new JIRA. > > On Fri, Jul 22, 2011 at 4:27 PM, Ted Yu (JIRA) wrote: > >> >> =A0 =A0[ >> https://issues.apache.org/jira/browse/HBASE-4127?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1306984= 0#comment-13069840] >> >> Ted Yu commented on HBASE-4127: >> ------------------------------- >> >> +1 on the patch. >> >> Long term, we should hide this ctor, HTableDescriptor(). >> Its existence is to support the following pattern: >> {code} >> =A0 =A0 =A0hTableDescriptor =3D new HTableDescriptor(); >> =A0 =A0 =A0hTableDescriptor.readFields(fsDataInputStream); >> {code} >> I think we should replace this ctor with the following: >> {code} >> public HTableDescriptor getTableDescriptor(DataInputStream dataInputStre= am) >> {code} >> >> > HBaseAdmin : Don't modify table's name away >> > ------------------------------------------- >> > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Key: HBASE-4127 >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 URL: https://issues.apache.org/jira/br= owse/HBASE-4127 >> > =A0 =A0 =A0 =A0 =A0 =A0 Project: HBase >> > =A0 =A0 =A0 =A0 =A0Issue Type: Bug >> > =A0 =A0 =A0 =A0 =A0Components: client, master >> > =A0 =A0Affects Versions: 0.92.0 >> > =A0 =A0 =A0 =A0 =A0 =A0Reporter: Nicolas Spiegelberg >> > =A0 =A0 =A0 =A0 =A0 =A0Assignee: Nicolas Spiegelberg >> > =A0 =A0 =A0 =A0 =A0 =A0Priority: Blocker >> > =A0 =A0 =A0 =A0 Attachments: HBASE-4127.patch >> > >> > >> > One of the developers was using the default constructor for >> HTableDescriptor, which is sadly a bad constructor that should never be >> used. It made the tablename empty in META & caused an ERROR cycle as reg= ion >> onlining kept failing. We should have never let this happen. Don't do ta= ble >> modifications if the HTableDescriptor name doesn't match the table name >> passed in. >> >> -- >> This message is automatically generated by JIRA. >> For more information on JIRA, see: http://www.atlassian.com/software/jir= a >> >> >> >