The Monitor has two separate polls, to get new CRConfig, and to get new monitoring.json.
Even if you make your changes and snapshot immediately, the Monitor might poll the CRConfig, get those updates, and it might be 5 or 30 seconds later before it polls monitoring.json and gets the updates from there.
For example, if those changes include renaming a Profile, and the monitoring.json is polled first, the Monitor will be missing the old profile and be unable to poll caches with that profile, until it polls the CRConfig again and gets the change.
It’s a bug, the Monitor needs to not apply changes from one until it gets the other. Whoever fixes this also needs to determine which should be first (until #1738 is fixed, which will make them the same [I'd suggest fixing #1738 first, but it's likely considerably more work than this]). I think the CRConfig should be first, but I may be wrong, and in fact, there may be no right answer, #1738 may have to be fixed first.
This is related to but distinct from #1738 . Symptoms will often be the result of some combination of both bugs.
The Monitor has two separate polls, to get new
CRConfig, and to get newmonitoring.json.Even if you make your changes and snapshot immediately, the Monitor might poll the CRConfig, get those updates, and it might be 5 or 30 seconds later before it polls
monitoring.jsonand gets the updates from there.For example, if those changes include renaming a Profile, and the
monitoring.jsonis polled first, the Monitor will be missing the old profile and be unable to poll caches with that profile, until it polls the CRConfig again and gets the change.It’s a bug, the Monitor needs to not apply changes from one until it gets the other. Whoever fixes this also needs to determine which should be first (until #1738 is fixed, which will make them the same [I'd suggest fixing #1738 first, but it's likely considerably more work than this]). I think the CRConfig should be first, but I may be wrong, and in fact, there may be no right answer, #1738 may have to be fixed first.
This is related to but distinct from #1738 . Symptoms will often be the result of some combination of both bugs.