[ 
https://issues.apache.org/jira/browse/HBASE-6459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424681#comment-13424681
 ] 

Zhihong Ted Yu commented on HBASE-6459:
---------------------------------------

In your test, did you kill one of the region servers ?
{code}
+  public static final String HREGION_OPEN_AND_INITIALIZE_THREADS_MAX = 
"hbase.hregion.open.and.initialize.threads.max";
{code}
The above line is too long (> 100 characters). Can we find a shorter name for 
"hbase.hregion.open.and.initialize.threads.max" ?

I would suggest producing patch for trunk so that Hadoop QA can run tests over 
it.
After trunk patch passes review, patches for branches can be produced.

Since this is an improvement, I doubt it would go to other branches.
                
> improve speed of create table
> -----------------------------
>
>                 Key: HBASE-6459
>                 URL: https://issues.apache.org/jira/browse/HBASE-6459
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.94.0
>            Reporter: zhou wenjian
>             Fix For: 0.94.1
>
>         Attachments: HBASE-6459-90.patch, HBASE-6459-92.patch, 
> HBASE-6459-94.patch
>
>
> in CreateTableHandler
> for (int regionIdx = 0; regionIdx < this.newRegions.length; regionIdx++) {
>       HRegionInfo newRegion = this.newRegions[regionIdx];
>       // 1. Create HRegion
>       HRegion region = HRegion.createHRegion(newRegion,
>         this.fileSystemManager.getRootDir(), this.conf,
>         this.hTableDescriptor, null, false, true);
>       regionInfos.add(region.getRegionInfo());
>       if (regionIdx % batchSize == 0) {
>         // 2. Insert into META
>         MetaEditor.addRegionsToMeta(this.catalogTracker, regionInfos);
>         regionInfos.clear();
>       }
>       // 3. Close the new region to flush to disk.  Close log file too.
>       region.close();
>     }
> All the region will be create serially.
> If we have thousands of regions, that will be a huge cost.
> We can improve it by create the region in parallel

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to