Files
synapse/changelog.d/rust-state-res.feature
Erik JohnstonandClaude Opus 5.5 51a20c80c8 Resolve state in Rust behind experimental_features.rust_state_res
For v2 and v2.1 rooms on the native driver:

- "on" resolves in Rust, falling back to Python for rooms without a
  chain cover index. The per-room CPU and database metrics come from
  the Rust stats, as the log context does not see that work.
- "shadow" resolves in Python, then in Rust with a copy of the event
  map, logs any difference and counts the outcome in
  synapse_state_res_rust_shadow_total.
- "off" (the default) is unchanged.

SYNAPSE_TEST_RUST_STATE_RES sets the mode for every test homeserver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULdieJyQoHNzeHq42H2M1p
2026-10-13 10:49:24 +00:00

2 lines
128 B
Gherkin

Add an experimental Rust implementation of state resolution v2 and v2.1, for deployments using the native Rust Postgres driver.