jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (OAK-2939) Make compaction gain estimate more accurate
Date Wed, 03 Jun 2015 07:30:49 GMT

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

Michael Dürig resolved OAK-2939.
    Resolution: Won't Fix

Resolving as won't fix as I think the compaction estimation currently works all right. Including
the in memory references wouldn't be the right thing as it would change the semantics to "cleanup
estimation". Re. including extra segments contributed by the persisted compaction map I decided
to go with a simple. This allows for offsetting the estimate with a fixed number of bytes.
When the persisted compaction map is used that offset is calculated from the number of entries
in the compaction map. 

> Make compaction gain estimate more accurate
> -------------------------------------------
>                 Key: OAK-2939
>                 URL: https://issues.apache.org/jira/browse/OAK-2939
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: segmentmk
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>             Fix For: 1.3.1
> Currently the compaction gain estimation process only takes the current head into account
when calculating the retained size. We could make it more accurate by also taking in memory
references into account. This would prevent compaction from running when many in memory references
would later on prevent segments from being cleaned up. 
> Also for OAK-2862, we would need a way to include the segments used for the persisted
compaction map in the retained size. 
> While at it, we could try to improve logging so information on how much space is retained
by the current head, in memory references and the persisted compaction map would be logged

This message was sent by Atlassian JIRA

View raw message