Rishabh Daim created OAK-12350:
----------------------------------
Summary: Add OSGi packaging coverage for OAK-12290 cache
maintenance executor
Key: OAK-12350
URL: https://issues.apache.org/jira/browse/OAK-12350
Project: Jackrabbit Oak
Issue Type: Task
Reporter: Rishabh Daim
h2. Purpose
Add regression coverage for the OSGi packaging failure discovered while
reviewing [OAK-12290|https://issues.apache.org/jira/browse/OAK-12290] and [PR
#3071|https://github.com/apache/jackrabbit-oak/pull/3071].
h2. Issue
PR #3071 changes {{CacheBuilder}} to reference {{CacheMaintenanceExecutor}}.
The {{oak-lucene}} bundle selectively embeds {{CacheBuilder.class}} from
{{oak-core-spi}}, but does not currently embed {{CacheMaintenanceExecutor}} or
its nested classes. The implementation package is not exported.
When {{ExtractedTextCache}} constructs a positive-capacity cache, the
selectively embedded bundle may fail OSGi resolution or throw
{{NoClassDefFoundError}} because the new implementation reference is
unavailable.
h2. Scope
Add a focused OSGi packaging/resolution regression test that verifies the
embedded oak-lucene bundle contains the required maintenance-executor classes,
has no unresolved import for the non-exported implementation package, and can
construct {{ExtractedTextCache}} with a positive cache size.
The corresponding production embed-configuration fix is being applied in PR
#3071; this ticket covers the test case only.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)