Skip to content

Propagate cache failures with an explicit primary-only policy - #47

Merged
ancongui merged 1 commit into
mainfrom
feat/primary-only-cache-policy-20261031
Nov 1, 2026
Merged

ancongui merged 1 commit into
mainfrom
feat/primary-only-cache-policy-20261031

Conversation

@ancongui

@ancongui ancongui commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Cache backend failures can currently be recovered as misses or false results, and smart/fallback configuration can select another provider. Add an opt-in PRIMARY_ONLY_PROPAGATE_ERRORS policy that requires one explicitly selected supported provider, bypasses L1/fallback selection, and propagates acquisition, operation, codec, invalid-result, and resource-release errors. Existing constructors, factories, providers, TTL behavior, and defaults keep their legacy behavior.

PostgreSQL is the first supported built-in provider. Existing third-party providers refuse the new policy unless they implement it explicitly. Serializer failure logs now emit fixed metadata and an error type while preserving exceptions for callers. The module guide documents construction, ambiguous mutation outcomes, and deployment validation requirements.

Validation:

  • Fresh hosted source qualification: 202 maintained tests and the same 202 from a reconstructed archive, including all 53 new methods; zero failures, skips, or aborts. The published-artifact and genuine predecessor checks produced their required regression failures.
  • Local repository maintenance suite: 40 tests passed. Migration checks verified original source trees and historical refs after fetching the required existing remote refs into the isolated clone.
  • Release inventory: all 87 projects remain aligned at 26.10.23. No POM, version, schema, or generated SDK changes.
  • Full repository CI is required on this PR. The isolated module run does not establish native PostgreSQL topology/restart behavior, consuming-service adoption, or Maven Central publication. This source addition requires a future qualified whole-framework release; published 26.10.23 remains unchanged.

@ancongui
ancongui merged commit 4ba202b into main Nov 1, 2026
12 checks passed
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