| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The file-backed system parameter frontend re-read and re-parsed the file once per synchronized parameter on every tick, and logged a warning per parameter per tick while the file was missing or malformed. It also could not tell the scoped reconcile that it knew nothing, so a missing or unparseable file was reconciled as a complete desired state of "no scoped overrides", pruning every one. Read the file once per tick, keep the parse until the file's bytes change, and warn once per change. Report whether the latest read parsed through `has_scoped_desired_state`, and skip the scoped reconcile while it did not, leaving existing overrides in place. Values for a flat file are unchanged: the same JSON-to-string conversion, `null` means no opinion, and a parameter the file does not mention, or every parameter while the file is unreadable, keeps its current value. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KdNahqJ7ASK2z2EZVEvr36
|
buildkite/test/postgres-cdc-3 failed on 716ca37 (build 137699, exit status 1). I don't think this PR caused it:
I couldn't read the job log: Buildkite is blocked from the environment I work in. I also can't retry the job from here. Could someone with Buildkite access re-run that one job? 🤖 Generated with Claude Code |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Requested by Moritz Hoffmann · Slack thread
Motivation
First half of a two-PR stack. #38208 (cluster- and replica-scoped parameters in the config-sync file) is stacked on this PR. This part changes how the existing flat ConfigMap is read and nothing about what it means, so it can be reviewed and landed on its own.
Before: the file-backed frontend re-read and re-parsed the file once per synchronized parameter on every tick, and logged a warning per parameter per tick while the file was missing or malformed. A missing or unparseable file was handed to the scoped reconcile as a complete, empty desired state, which pruned every scoped override.
After: the file is read once per tick, and the parse is cached until the file's bytes change, so the warnings fire once per edit. A tick whose read failed or did not parse skips the scoped reconcile, so an unreadable file leaves the scoped overrides alone.
Description
On main the file client produces no scoped overrides, so skipping the reconcile only matters for rows written some other way. It matters once #38208 gives the file scoped rules, and it belongs with the read path.
Verification
New unit tests in src/adapter/src/config/frontend.rs:
🤖 Generated with Claude Code
https://claude.ai/code/session_01KdNahqJ7ASK2z2EZVEvr36
Generated by Claude Code