Skip to content

OAK-12436: support per-cache caffeine maintenance mode - #3185

Open
rishabhdaim wants to merge 1 commit into
trunkfrom
issue/OAK-12436
Open

rishabhdaim wants to merge 1 commit into
trunkfrom
issue/OAK-12436

Conversation

@rishabhdaim

@rishabhdaim rishabhdaim commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Add per-cache SYNC/ASYNC maintenance selection to CacheBuilder, preserving the ASYNC default and existing caller behavior. Explicit selection overrides the legacy shared toggle; refresh stays asynchronous and zero-capacity eviction stays inline. Include the new enum in Lucene's embedded cache classes.

Tests cover executor selection, refresh overriding SYNC, and zero size/weight overriding ASYNC and refresh, including zero weight with refresh and SYNC. Brief comments explain the failure scenarios these tests protect.

Validation with Java 17: 245 Core SPI tests (three existing skips), including 26 maintenance cases; API baseline, coverage and license checks passed. Previously verified: 12 extracted-text cache tests and isolated Lucene bundle loading and execution of both modes.

OAK-12436. Caller integration follows in #3186 and #3176.

Co-Authored-By: OpenAI Codex noreply@openai.com

@rishabhdaim rishabhdaim self-assigned this Oct 6, 2026
@rishabhdaim
rishabhdaim added this pull request to stack #3182 October 6, 2026 04:40
@rishabhdaim
rishabhdaim force-pushed the issue/OAK-12436 branch 2 times, most recently from 9bc628a to a9126cd Compare October 6, 2026 05:36
@rishabhdaim
rishabhdaim removed this pull request from stack #3182 October 6, 2026 05:37
@rishabhdaim
rishabhdaim changed the base branch from issue/OAK-12426 to trunk October 6, 2026 05:37
@rishabhdaim
rishabhdaim added this pull request to stack #3187 October 6, 2026 05:57
@rishabhdaim
rishabhdaim removed this pull request from stack #3187 October 6, 2026 08:37
@rishabhdaim
rishabhdaim added this pull request to stack #3191 October 6, 2026 08:37
@rishabhdaim
rishabhdaim force-pushed the issue/OAK-12436 branch 7 times, most recently from ed540cb to 1909a12 Compare October 8, 2026 08:55
Co-Authored-By: OpenAI Codex <noreply@openai.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 8, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant