That's not how it works, whether the createTable call is sync or not the regions are first created in .META. before the call can return.
And looking at that code, it seems it's highly inefficient. We should not change the enable flag for every region, we should batch put all the .META. rows and we should not open a new HLog per new region. J-D On Mon, Jun 20, 2011 at 2:55 PM, Ted Yu <[email protected]> wrote: > From Vidhyashankar @ 20/May/11 05:53: > Hence there might be a case when all regions are indeed fully assigned in > META but it is just that the master is yet to populate META with the rest of > the regions. > > The above means scanning .META. alone wouldn't guarantee that all the > regions of the table are assigned. >
