Skip to content

TableSchemaService's getWithCache calls predate the outage-proofing pattern #30

Description

@alexstandiford

Split out of #28's audit loop.

#28 made every datastore cache touch outage-tolerant (reads treat cache failure as a miss, mutations swallow-and-log, read-throughs use a capture-guard that keeps domain exceptions intact). TableSchemaService::getPrimaryColumnsForTable() / getUniqueColumns() still call CacheableService::getWithCache() bare, and the datastore write paths reach them via maybeThrowForDuplicateUniqueFields() — so a throwing cache backend has one remaining hop that can break create/update flows.

Fix shape: apply the same guarded read-through (serve the loaded value when only the post-load store failed; load directly when the probe broke; propagate fallback exceptions).

🤖 Generated with Claude Code

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions