You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2008/06/02 17:49:45 UTC
[jira] Updated: (HBASE-655) need programmatic way to add column
family: need programmatic way to enable/disable table
[ https://issues.apache.org/jira/browse/HBASE-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-655:
------------------------
isTableOffline should be easy enough to add. Just scan META and return false as soon as it finds a region that is still onlined. We should also add the inverse: isTableOnline. Presence of these methods in API will also help convey the message that onlining/offlining is not synchronous.
Would suggest we add this utility in 0.2.
> need programmatic way to add column family: need programmatic way to enable/disable table
> -----------------------------------------------------------------------------------------
>
> Key: HBASE-655
> URL: https://issues.apache.org/jira/browse/HBASE-655
> Project: Hadoop HBase
> Issue Type: Bug
> Reporter: Michael Bieniosek
> Fix For: 0.2.0
>
>
> From HADOOP-2292:
> > What you might do is open a HTable on the META region (HConstants.META_TABLE_NAME) and scan HConstants.COL_REGIONINFO_ARRAY which will give you back HRegionInfo objects (as bytes).
> > Find the table in question by comparing your table name to regionInfo.getTableDesc().getName()
> > If adding or deleting columns, check regionInfo.getTableDesc().hasFamily()
> > If changing table on/off line check regionInfo.isOffline()
> > If any of the regions don't meet the criteria, close the scanner, sleep and rescan.
> This is a bit too complicated for me. If you won't make enableTable/disableTable synchronous, we should at least have a HTable.isTableDisabled method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.