hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-1469) Asynchronous table creation
Date Wed, 06 Jun 2007 18:35:27 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-1469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

stack updated HADOOP-1469:
--------------------------

    Assignee: stack
      Status: Patch Available  (was: Open)

> 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.


Mime
View raw message