[
https://issues.apache.org/jira/browse/OAK-7158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16326924#comment-16326924
]
Michael Dürig commented on OAK-7158:
------------------------------------
As OAK-7132 requires us to constrain the number of retained generations to 2
anyway, we should go with the 2nd version of the patch. Note, that the patch
should also address setting the number of retained generations via
{{SegmentRevisionGCMBean.setRetainedGenerations()}}. Also the error / log
message should probably mention that the only supported value is 2 and that
this setting is deprecated and will be removed in future versions.
> Validate the number of retained generations in SegmentNodeStoreService
> ----------------------------------------------------------------------
>
> Key: OAK-7158
> URL: https://issues.apache.org/jira/browse/OAK-7158
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segment-tar
> Reporter: Francesco Mari
> Assignee: Francesco Mari
> Priority: Major
> Fix For: 1.9.0, 1.10
>
> Attachments: OAK-7158-01.diff, OAK-7158-02.diff
>
>
> Currently, {{SegmentGCOptions}} implements a validation check on the number
> of retained generations that prevents callers to set it to a value smaller
> than two. Instead, some subsystems might benefit from having a number of
> retained generations smaller than two - see OAK-7157 as an example.
> The check performed by {{SegmentGCOptions}} should be moved to
> {{SegmentNodeStoreService}} to prevent users from setting the number of
> retained generations to a an invalid value. Internal subsystems should be
> allowed to set the number of retained generations to a lower value, if needed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)