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 A4CBE623E for ; Tue, 14 Jun 2011 21:11:15 +0000 (UTC) Received: (qmail 4571 invoked by uid 500); 14 Jun 2011 21:11:15 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 4547 invoked by uid 500); 14 Jun 2011 21:11:15 -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 4539 invoked by uid 99); 14 Jun 2011 21:11:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 21:11:15 +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; Tue, 14 Jun 2011 21:11:14 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2A7444169D4 for ; Tue, 14 Jun 2011 21:10:54 +0000 (UTC) Date: Tue, 14 Jun 2011 21:10:54 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <839781312.4297.1308085854170.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-451) Remove HTableDescriptor from HRegionInfo 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-451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-451: ------------------------ Attachment: fixtestadmin.txt Subbu. TestAdmin is only test failing because of this commit. Reason its failing is because of our test of many concurrent table creates. I think the writing of the tableinfo file makes this all a little more complicated. I did a bit of cleanup in the attached patch. One byproduct is that now HRegion knows nothing of HTableDesc (we no longer try and create the tableinfo everytime we create a region -- that seems a little wonky reaching up to the directory above....) What you think? > Remove HTableDescriptor from HRegionInfo > ---------------------------------------- > > Key: HBASE-451 > URL: https://issues.apache.org/jira/browse/HBASE-451 > Project: HBase > Issue Type: Improvement > Components: master, regionserver > Affects Versions: 0.2.0 > Reporter: Jim Kellerman > Assignee: Subbu M Iyer > Priority: Critical > Fix For: 0.92.0 > > Attachments: 451_support_for_removing_HTD_from_HRI_trunk.txt, HBASE-451_-_First_draft_support_for_removing_HTD_from_HRI1.patch, HBASE-451_-_Fourth_draft_support_for_removing_HTD_from_HRI.patch, HBASE-451_-_Second_draft_-_Remove_HTD_from_HRI.patch, fixtestadmin.txt > > > There is an HRegionInfo for every region in HBase. Currently HRegionInfo also contains the HTableDescriptor (the schema). That means we store the schema n times where n is the number of regions in the table. > Additionally, for every region of the same table that the region server has open, there is a copy of the schema. Thus it is stored in memory once for each open region. > If HRegionInfo merely contained the table name the HTableDescriptor could be stored in a separate file and easily found. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira