Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 75244 invoked from network); 12 Jun 2007 21:10:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2007 21:10:48 -0000 Received: (qmail 43900 invoked by uid 500); 12 Jun 2007 21:10:50 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 43881 invoked by uid 500); 12 Jun 2007 21:10:50 -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 43872 invoked by uid 99); 12 Jun 2007 21:10:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 14:10:50 -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; Tue, 12 Jun 2007 14:10:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3BE727141E5 for ; Tue, 12 Jun 2007 14:10:26 -0700 (PDT) Message-ID: <12752452.1181682626243.JavaMail.jira@brutus> Date: Tue, 12 Jun 2007 14:10:26 -0700 (PDT) From: "Jim Kellerman (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-1469) Asynchronous table creation In-Reply-To: <31128077.1181152406270.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-1469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jim Kellerman updated HADOOP-1469: ---------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) I just committed this. Thanks Michael. > Asynchronous table creation > --------------------------- > > Key: HADOOP-1469 > URL: https://issues.apache.org/jira/browse/HADOOP-1469 > Project: Hadoop > Issue Type: New Feature > Components: contrib/hbase > Affects Versions: 0.13.0 > Reporter: James Kennedy > Assignee: stack > Priority: Minor > Attachments: hadoop1469.patch > > > In some of my code i found it efficient to create a new table without immediately requiring (blocking for) the client to have references to it's HRegions. Effectively this requires that the client update the table info only as needed. > Can something like the following method to HClient be added? > /** > * Creates a new table but does not block and wait for it to come online. > * > * @param desc - > * table descriptor for table > * > * @throws IllegalArgumentException - > * if the table name is reserved > * @throws MasterNotRunningException - > * if master is not running > * @throws NoServerForRegionException - > * if root region is not being served > * @throws IOException > */ > public synchronized void createTableAsync(HTableDescriptor desc) > throws IOException { > checkReservedTableName(desc.getName()); > checkMaster(); > try { > this.master.createTable(desc); > } catch (RemoteException e) { > handleRemoteException(e); > } > } > which is basically the same as createTable() except without the findServersForTable(desc.getName()) part. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.