hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Meil (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-5389) [book] book.xml - minor correction of compaction algorithm (example #1)
Date Mon, 13 Feb 2012 14:24:59 GMT
[book] book.xml - minor correction of compaction algorithm (example #1)
-----------------------------------------------------------------------

                 Key: HBASE-5389
                 URL: https://issues.apache.org/jira/browse/HBASE-5389
             Project: HBase
          Issue Type: Improvement
            Reporter: Doug Meil
            Assignee: Doug Meil
            Priority: Minor
         Attachments: book_hbase_5389.xml.patch

Nicholas pointed this out to me.  The "what" was correct in all cases for example #1, but
two of the "whys" weren't correct:

--------

Slight modification to the book.  In 8.7.5.5.2

* 100 --> No, because sum(50, 23, 12, 12) * 1.0 = 97.
* 50 --> No, because sum(23, 12, 12) * 1.0 = 47.
* 23 --> Yes, because sum(12, 12) * 1.0 = 24.
* 12 --> Yes, because sum(12) * 1.0 = 12.
* 12 --> Yes, because the previous file had been included, and this is
included because this does not exceed the the max-file limit of 5.

[12,12] are include solely because an older/larger file is included: 23.
The compaction algorithm itself stops after noticing that 23 should be
included.  Sum(12) * 1.0 >= 12 isn't done at all

--------

Correcting explanation of the last 2 files on why they were selected for minor compaction.



--
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

        

Mime
View raw message