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 "Andrei Dulceanu (JIRA)" <ji...@apache.org> on 2016/11/02 12:30:58 UTC

[jira] [Comment Edited] (OAK-5046) Remove the old estimation OSGi setting (compaction.gainThreshold)

    [ https://issues.apache.org/jira/browse/OAK-5046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15628555#comment-15628555 ] 

Andrei Dulceanu edited comment on OAK-5046 at 11/2/16 12:30 PM:
----------------------------------------------------------------

I removed the configuration from {{SegmentNodeStoreService}}, deprecated {{CompactionGainEstimate}} and issued a deprecation warning in {{FileStore}} when falling back to the old implementation.

[~alexparvulescu], could you take a look at the patch?

/cc [~mduerig]


was (Author: dulceanu):
I removed the configuration from {{SegmentNodeStoreService}}, deprecated {{CompactionGainEstimate}} and issued a deprecation warning in {{FileStore}} when falling back to the old implementation.

[~mduerig], could you take a look at the patch?

/cc [~alexparvulescu]

> Remove the old estimation OSGi setting (compaction.gainThreshold)
> -----------------------------------------------------------------
>
>                 Key: OAK-5046
>                 URL: https://issues.apache.org/jira/browse/OAK-5046
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>    Affects Versions: 1.5.12
>            Reporter: Andrei Dulceanu
>            Assignee: Andrei Dulceanu
>            Priority: Minor
>              Labels: osgi-config
>             Fix For: 1.5.13
>
>         Attachments: OAK-5046-01.patch
>
>
> Currently, there are two implementations for finding out the gain in repository size after running compaction: the old one, {{CompactionGainEstimate}} and the new one, {{SizeDeltaGcEstimation}}. Similarly, there are also two configurations for customising them, in {{SegmentNodeStoreService}}, {{compaction.gainThreshold}} and {{compaction.sizeDeltaEstimation}}.
> At the moment both of them are exposed as OSGi configurations, but only the new one should be exposed (e.g. {{compaction.sizeDeltaEstimation}}). 
> It must be evaluated whether it makes sense to keep the logic associated with the old implementation.



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