[
https://issues.apache.org/jira/browse/OAK-12438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rishabh Daim updated OAK-12438:
-------------------------------
Description:
Move Segment Tar's FT_OAK-12290 override into SegmentCache and RecordCache,
using the per-cache API from OAK-12436.
* Default to ASYNC; disabling the toggle selects SYNC for newly created Segment
Tar caches only.
* Existing caches keep their mode until recreated. Preserve the selected policy
across service reactivation.
* Remove the obsolete shared toggle fields and tests. Update the internal cache
API export version and verify Oak consumers.
* Test both cache types, toggle wiring and isolation from other bundles.
[PR #3186|https://github.com/apache/jackrabbit-oak/pull/3186] depends on [PR
#3185|https://github.com/apache/jackrabbit-oak/pull/3185].
was:
h3. Summary
Use the per-cache Caffeine maintenance mode in oak-segment-tar and scope
FT_OAK-12290 to Segment Tar caches.
h3. Scope
This is the Segment Tar integration of OAK-12436 and has its own dependent PR.
DocumentNodeStore entry-owned cache metadata belongs to OAK-12425. OAK-12426
and OAK-12437 cover the subsequent DocumentNodeStore benchmarks.
h3. Acceptance Criteria
# SegmentCache and RecordCache select their own SYNC or ASYNC maintenance
policy using the shared per-cache API.
# ASYNC remains the default. Disabling FT_OAK-12290 selects SYNC for Segment
Tar caches only.
# Changing the Segment toggle does not change DocumentNodeStore or independent
CacheBuilder instances.
# The shared CacheBuilder API no longer uses Segment Tar's toggle as a
process-wide override after the migration.
# Construction-time sampling, cache recreation, and reapplication of the toggle
setting are documented.
# Behavioral tests exercise both Segment and Record cache constructors in both
modes and restore incoming toggle state.
# The PR is based on the per-cache maintenance API PR and is reviewed
independently from the DocumentNodeStore migration.
> Scope Segment Tar Caffeine maintenance overrides to its caches
> --------------------------------------------------------------
>
> Key: OAK-12438
> URL: https://issues.apache.org/jira/browse/OAK-12438
> Project: Jackrabbit Oak
> Issue Type: Task
> Reporter: Rishabh Daim
> Priority: Major
>
> Move Segment Tar's FT_OAK-12290 override into SegmentCache and RecordCache,
> using the per-cache API from OAK-12436.
> * Default to ASYNC; disabling the toggle selects SYNC for newly created
> Segment Tar caches only.
> * Existing caches keep their mode until recreated. Preserve the selected
> policy across service reactivation.
> * Remove the obsolete shared toggle fields and tests. Update the internal
> cache API export version and verify Oak consumers.
> * Test both cache types, toggle wiring and isolation from other bundles.
> [PR #3186|https://github.com/apache/jackrabbit-oak/pull/3186] depends on [PR
> #3185|https://github.com/apache/jackrabbit-oak/pull/3185].
--
This message was sent by Atlassian Jira
(v8.20.10#820010)