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
fix(mem): saturate memory release on underflow instead of panicking
BudgetGovernor::release() previously used fetch_sub which panics in
debug builds (and wraps in release) when releasing more bytes than are
currently allocated. This can occur legitimately during WAL replay,
where samples are ingested without a prior reserve() call. Replace
with a CAS loop that saturates to zero and emits a tracing::warn so
the drift is observable without crashing the server.
Also modernize if-let chains, Option combinators, and minor idioms
across catalog, interpolate, window, eval, sql_plan_convert,
collection_insert, prepared parser, kv hash_table, kv sorted_index,
timeseries grouped scan, and trigger retry to use Rust 2024 let-chain
syntax and is_none_or/is_some_and where appropriate.
0 commit comments