Skip to content

Reliability: bad cache.schedule terminates the process; a failed refresh takes a populated cache offline; errors leak via /health; rate-limit bypasses #193

Closed

Description

@jrosskopf

From the crew review (caching + pipeline), reported not yet reproduced:

  • shouldRunScheduledRefresh() runs outside the try in src/heartbeat_worker.cpp ~94; a schedule like 5x throws on the second pass and std::terminate()s. parseInterval accepts 0s and overflows int (src/cache_manager.cpp ~1125).
  • A failed scheduled refresh marks a populated cache Failed -> 503 for every request though the last snapshot is readable (src/cache_manager.cpp ~109). The raw DuckDB exception is stored and returned by readiness JSON and /health.
  • Schema/catalog/audit SQL is built without identifier quoting/escaping (cache_manager.cpp ~1059, ~1093; database_manager.cpp ~171).
  • rollback-window and delete-handling are parsed but never used; compaction schedule is ignored.
  • Rate limit: user key hashes the raw Authorization header before auth (fresh bucket per invalid token); endpoint lookup is by path only, not method; bucket key includes the literal path (/items/:id).
  • REST create/update/delete are in-memory only while MCP create/delete persist/remove the YAML; EndpointRepository maps look unsynchronised (src/config_manager.cpp ~2225); debug logging dumps the template context (src/sql_template_processor.cpp ~244); remote --config s3:// cannot boot (VFS provider needs an initialised DatabaseManager).

Activity

  1. added a commit that references this issue on Oct 4, 2026
  2. jrosskopf commented on Oct 4, 2026

    @jrosskopf
    ContributorAuthor

    Addressed by #197 (schedule validation, stale-snapshot serving, error-leak removal). The remaining items moved to a new issue.

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