Please include dev@ so that other people would be able to answer your
question.
>> and Daugter A2(Midkey to startkey).
Should read (Midkey to endkey).

For #1 below, you're right that splitting benefits retrieval more than
writes.
For #2, I guess you may have read CompactSplitThread code where compacting
stores in a region happens before splitting.

Cheers

On Mon, Jul 4, 2011 at 9:26 PM, Ramkrishna S Vasudevan <
[email protected]> wrote:

> Dear Ted
>
> Thanks for your reply.
>
> I have few questions on Splitting of regions.
>
> I will tell my observations, may be they are not fully correct. Pls correct
> me if am wrong,
>
> Every time compaction results in a file greater than max file size region
> splits happen from the mid key.
>
> So Region A is now split into Daughter A1(Start to midkey) and Daugter
> A2(Midkey to startkey).
>
> 1. Why do we do a split ?
> I suppose it is because now a Region will now hold only a portion of the
> full data and hence retrieval will be easy.
>
> 2. Is there a possibility that during first compaction a region split
> happens, which results in 2 region creations.
>
> Now when new write request come to the parent region will it be accomodated
> in the new daughter regions that were created.
> If it is the case, now how will the splitkeys be handled ?
>
> Pls do corect me if am wrong anywhere?
>
> Regards
> Ram
>
>
>
>
> ****************************************************************************
> ***********
> This e-mail and attachments contain confidential information from HUAWEI,
> which is intended only for the person or entity whose address is listed
> above. Any use of the information contained herein in any way (including,
> but not limited to, total or partial disclosure, reproduction, or
> dissemination) by persons other than the intended recipient's) is
> prohibited. If you receive this e-mail in error, please notify the sender
> by
> phone or email immediately and delete it!
>
> -----Original Message-----
> From: Ted Yu [mailto:[email protected]]
> Sent: Tuesday, July 05, 2011 9:38 AM
> To: [email protected]
> Cc: [email protected]
> Subject: Re: Reg: The HLog that is created in region creation
>
> Not really used.
> See hbase-4010
>
>
>
> On Jul 4, 2011, at 8:55 PM, Ramkrishna S Vasudevan <
> [email protected]>
> wrote:
>
> > Hello
> >
> >
> >
> > Can anybody tell me what is the use of the HLog created per region when a
> > region is created?
> >
> >
> >
> > Regards
> >
> > Ram
> >
> >
> >
> >
>
> ****************************************************************************
> > ***********
> > This e-mail and attachments contain confidential information from HUAWEI,
> > which is intended only for the person or entity whose address is listed
> > above. Any use of the information contained herein in any way (including,
> > but not limited to, total or partial disclosure, reproduction, or
> > dissemination) by persons other than the intended recipient's) is
> > prohibited. If you receive this e-mail in error, please notify the sender
> by
> > phone or email immediately and delete it!
> >
> >
> >
>
>

Reply via email to