Config updates can be missed #1135
Labels
part:config
Affects the configuration management
priority:❓
We need to figure out how soon this should be addressed
status:blocked
Other issues must be resolved before this can be worked on
type:bug
Something isn't working
Milestone
What happened?
Some time ago we switched to using polling because inotify doesn't work very well under some circumstances (like inside containers). The problem is polling is also not the panacea, as it seems like updates can be also missed if they are very close in time (my guess is that watchfiles has only 1 second resolution.
What did you expect instead?
All updates should be picked up.
Affected version(s)
No response
Affected part(s)
Configuration management (part:config)
Extra information
At this point I think we should really consider a better system for notifying about config updates, trying to watch files keep bringing issues and it is very problematic for testing, but since this might be a major undertaking, I guess for now we can just do a regular complete read of the config file, every 10 seconds or so, compare to the last read, and trigger an update if it changed. So the watcher would just be an optimization to pick up the changes more quickly.
This tests fails most of the time (I think it succeeds very seldom, when the
await
in the task crosses the second boundary:The text was updated successfully, but these errors were encountered: