You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Operational Database owner: validation and migration error handling gaps #4977
Found while reviewing the H-2 split of packages/core/src/database/owner.ts (#4969, Refs #4521). The split is a pure move, so these were left as-is.
Connection leak on validation failure. If SQLite configuration, integrity checking or generation reading throws during active validation in prepareDatabase, the local connection can escape explicit closure before the owner enters recovery.
Original migration error masked. If a migration closes the staging connection before throwing, migrateInStaging reads isTransaction on the closed connection and SQLite's ERR_INVALID_STATE replaces the original error.
Sparse migration arrays. A sparse migration array can bypass the per-index checks in validateSchemaPlan and fail later during migration or ledger checks.
Each fix needs a regression test that fails on main.
Activity