forked from lei.chen/myxce
docs: address 30 adversarial review findings for persistence-and-ha-design
Three rounds of adversarial review plus a regression review identified 30 findings across CRITICAL/HIGH/MODERATE/LOW severities. Key fixes: CRITICAL/HIGH: - C11 atomics for COW inuse fields (vget, vput, vstore scan + growth) - kvtab_gc must run inside same write-lock section as thaw - WAL growth safeguard during in-progress checkpoint - pthread_mutex_t checkpoint_mutex (not mylock_t) for cond var - atomic_store_explicit(release) for ha.role demotion write MODERATE: - LSN strictly-increasing check (not consecutive) for WAL_CHECKPOINT gaps - Hook unregistration on demotion + idempotent registration guard - CLOCK_MONOTONIC recommendation for retention time comparisons - Cross-kvmgr freeze ordering documented (WAL replay restores consistency) - pthread_once + rand_r() replacing unsafe rng_seed_once/rand() - should_retain lock requirement and merge-walk iterator lock doc - Standby catch-up receive ordering (snapshot-first, then live WAL) - applied_lsn==0 gap validation clarification LOW: - Demotion failure handling (fail-forward as STANDBY, no rollback) - WAL_CRC_NONE (0xFFFFFFFF) sentinel replacing collision-prone 0
This commit is contained in:
parent
b38babb7d6
commit
607f9519e1
1 changed files with 1409 additions and 295 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue