You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2014/12/05 10:22:12 UTC

[jira] [Updated] (OAK-2322) Compaction estimation includes all data segments

     [ https://issues.apache.org/jira/browse/OAK-2322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Parvulescu updated OAK-2322:
---------------------------------
    Attachment: OAK-2322.patch

proposed patch. [~mduerig] feedback?

> Compaction estimation includes all data segments
> ------------------------------------------------
>
>                 Key: OAK-2322
>                 URL: https://issues.apache.org/jira/browse/OAK-2322
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, segmentmk
>            Reporter: Alex Parvulescu
>            Assignee: Alex Parvulescu
>         Attachments: OAK-2322.patch
>
>
> The original design of the compaction estimator was to only focus on binary segments when computing the amount of garbage that can be collected.
> This has a flaw when it runs on systems with external data stores configured as there will be almost no binary segments and the estimation will always be _0_, no need for compaction.
> The change to include all segments is not big, the _uuids_ bloomfilter is already initialized with the total number of segments, and the segment collection already loads everything in memory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)