Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 62865 invoked from network); 1 Aug 2007 20:06:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2007 20:06:50 -0000 Received: (qmail 9215 invoked by uid 500); 1 Aug 2007 20:06:48 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 9190 invoked by uid 500); 1 Aug 2007 20:06:48 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 9181 invoked by uid 99); 1 Aug 2007 20:06:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 13:06:48 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 20:06:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F306D7141F3 for ; Wed, 1 Aug 2007 13:05:52 -0700 (PDT) Message-ID: <4550265.1185998752992.JavaMail.jira@brutus> Date: Wed, 1 Aug 2007 13:05:52 -0700 (PDT) From: "Hadoop QA (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1528) HClient for multiple tables In-Reply-To: <21015338.1182806845850.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-1528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517063 ] Hadoop QA commented on HADOOP-1528: ----------------------------------- +1 http://issues.apache.org/jira/secure/attachment/12362986/patch.txt applied and successfully tested against trunk revision r561885. Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/502/testReport/ Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/502/console > HClient for multiple tables > --------------------------- > > Key: HADOOP-1528 > URL: https://issues.apache.org/jira/browse/HADOOP-1528 > Project: Hadoop > Issue Type: Task > Components: contrib/hbase > Affects Versions: 0.15.0 > Reporter: James Kennedy > Assignee: Jim Kellerman > Fix For: 0.15.0 > > Attachments: HConnection.patch, patch.txt, patch.txt, patch.txt > > > I have an app that needs to access multiple HBase tables concurrently. The current HClient can only have one table open at a time even though it caches region servers of multiple tables as they are looked up. > This means that my application layer must open multiple HClients, one per table, perhaps caching those HClients in a pool to reuse them (and their cached table data) as appropriate. > or > Shall I write an HClient patch that makes the HClient multi-table thread-safe? > Jim's suggestion is to implement an HClient singleton (call it HClientManager?) that does the actual caching/resync of root/meta regions. Individual HClients will still be one table, one update row at a time but will rely on the singleton for the cached table info. We want HClients to be created and disposed as fast as possible with a minimum of meta lookups. > Jim, what about non-root/meta regions, shouldn't they be cached and refreshed via the singleton also? It may still be possible that a region split/resync will occur during on HClient session so does the HClientManager need to be able to notify the corresponding HClients in that event? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.