The first settings save to a custom runtime configuration file in a folder that did not exist at start can miss the live reload #321
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#321
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem. When
NINLIL_DNS_SERVER_RUNTIME_SETTINGS_CONFIGURATION_FILE_PATHpoints at a custom file whose parent folder does not exist when Ninlil starts, the reload-on-change source added for #314 (RuntimeConfigurationFileSource.AddIfMissing: optional, reloadOnChange,ResolveFileProvider()) can miss the file's first creation. The first settings save then lands in the file but does not reachIOptionsMonitorlive. Every later save applies.Evidence. In the #314 verifier's console probe (same source settings), creation was missed in 1 of 4 runs when the folder was missing. When only the file is missing and its folder exists, creation by rename and every later replacement were picked up in all runs.
PresetConfigurationFileApplierwrites throughAtomicFile(temp file plus rename).Likely fix. Create the parent folder at startup, before the source is added, or watch the nearest existing ancestor. Add a host test that starts with a missing folder, PATCHes once and reads the value back live.
Acceptance.
Refs #314
Ghost referenced this issue2026-11-05 16:42:52 -05:00