There is also a description of the compaction file-selection algorithm in
here...

http://hbase.apache.org/book.html#regions.arch

(section 8.7.5.5)




On 4/26/12 5:28 PM, "Robby" <[email protected]> wrote:

>Yes, as per Lars' book: Minor compactions can be promoted to major
>compactions if the minor would include all storefiles and there are less
>then the configured maximum amount of storefiles per compaction.
>
>On 26 apr. 2012, at 20:54, Jean-Daniel Cryans <[email protected]> wrote:
>
>> I think the 0.92 code has a way to promote minor into major
>> compactions, feel free to checkout the code (also it should be present
>> in your logs).
>> 
>> J-D
>> 
>> On Wed, Apr 25, 2012 at 11:48 PM, yonghu <[email protected]> wrote:
>>> Hello,
>>> 
>>> My HBase version is 0.92.0. And I find that when I use minor
>>> compaction and major compaction to compact a table, there are no
>>> differences. In the minor compaction, it will remove the deleted cells
>>> and discard the exceeding data versions which should be the task of
>>> major compaction. I wonder if these two compaction can do the same
>>> work, why do we need both?  I mean the minor compaction has already
>>> done the job for major compaction, why we still need major compaction?
>>> 
>>> Regards!
>>> 
>>> Yong
>


Reply via email to