Skip to content

Use atomic writes for config services - #922

Merged
poppastring merged 3 commits into
mainfrom
Use-atomic-writes-for-config-services
Nov 7, 2026
Merged

poppastring merged 3 commits into
mainfrom
Use-atomic-writes-for-config-services

Conversation

@poppastring

Copy link
Copy Markdown
Owner

Use atomic writes for config services

Introduce IAtomicFileWriter/AtomicFileWriter for locked temp-file writes with flush-to-disk and cleanup, update config file services to use atomic persistence and improved exception handling, register the new writer and make ISiteConfig transient, persist AddUser through IConfigFileService, and add tests for atomic writes, serialization, service registration, and user persistence.

Introduce IAtomicFileWriter/AtomicFileWriter for locked temp-file writes with flush-to-disk and cleanup, update config file services to use atomic persistence and improved exception handling, register the new writer and make ISiteConfig transient, persist AddUser through IConfigFileService<SiteSecurityConfigData>, and add tests for atomic writes, serialization, service registration, and user persistence.
Retry transient Windows file locks and preserve the
live theme configuration when saving fails. Improve
error logging and add regression tests for retries,
activation, rendering, and configuration reload.
@poppastring
poppastring merged commit 7780c6e into main Nov 7, 2026
3 checks passed
@poppastring
poppastring deleted the Use-atomic-writes-for-config-services branch November 7, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant