No reviewers
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra!51
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/b1-mnesia-perf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Performance/durability batch.
190 tests green locally (3 new sweeper tests).
Fixes #10
Fixes #11
- boot-race fixed: wait_for_tables runs BEFORE the index backfill — add_table_index aborts {:no_exists, _} during the async disc_copies load window, which raised at boot on large pre-existing volumes (review finding, reproduced at 200k rows) - index backfill now runs once per node (:persistent_term guard) — it previously ran on every save/find/delete, two schema transactions per certificate operation - sweeper deletes in chunked transactions with an in-transaction re-read + predicate re-check: concurrent rate-limiter writes can no longer have fresh lockouts deleted mid-sweep (TOCTOU); cadence and age thresholds configurable via app env; listing failures logged - oauth_client client_id index (lost in an earlier failed batch script — the commit previously claimed it) now actually applied, with index_read lookup and backfill for existing tables - login_attempt :identifier index backfilled for foreign/legacy tables (previously silently failed open without it) Fixes #10, Fixes #11- boot-race fixed: the index backfill waits for the table to LOAD first (add_table_index aborts {:no_exists, _} during the async disc_copies load window — a boot crash loop on large pre-existing volumes) - index backfill self-heals: a cheap :mnesia.table_info(:index) check replaces per-op schema transactions AND recovers when a table is recreated without indexes (legacy-migration path), instead of a sticky :persistent_term flag that broke backfill after table recreation (63 test failures — legacy migration test recreates the table without indexes) - sweeper deletes in chunked transactions with an in-transaction re-read + timestamp re-check: concurrent rate-limiter writes can no longer have fresh lockouts deleted mid-sweep (TOCTOU); cadence/ages configurable via app env; listing failures logged; tuple field position off-by-one fixed - oauth_client client_id index applied (a previous commit claimed it but the edit was lost in a failed batch script) — index_read lookup + backfill for existing tables - login_attempt :identifier index backfilled for foreign/legacy tables (previously silently failed open without it) Fixes #10, Fixes #11