rob05c opened a new pull request #5066:
URL: https://github.com/apache/trafficcontrol/pull/5066
Fixes TO to generate monitoring if no snapshot.
This fixes a critical issue of upgrading to 4.x breaking production CDNs
until a Snapshot is done.
Includes tests.
Includes changelog.
No docs, no interface change.
- [x] This PR does part of #5005 but that issue requires the 4.x Backport as
well
## Which Traffic Control components are affected by this PR?
- Traffic Ops
## What is the best way to verify this PR?
Request the /monitoring endpoint on a TO CDN with no CRConfig/Monitoring
Snapshot, verify endpoint returns full monitoring not `""` or `{}`. Verify TO
logs an Error that a snapshot needs to be performed.
## If this is a bug fix, what versions of Traffic Control are affected?
- master
- 4.x
## The following criteria are ALL met by this PR
- [x] This PR includes tests OR I have explained why tests are unnecessary
- [x] This PR includes documentation OR I have explained why documentation
is unnecessary
- [x] This PR includes an update to CHANGELOG.md OR such an update is not
necessary
- [x] This PR includes any and all required license headers
- [x] This PR ensures that database migration sequence is correct OR this PR
does not include a database migration
- [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY** (see [the
Apache Software Foundation's security
guidelines](https://www.apache.org/security/) for details)
## Additional Information
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]