Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Add TM monitoring.json validity check for safety#3526

Merged
mitchell852 merged 3 commits intoapache:masterfrom
rob05c:tm-add-monitoring-json-safety-check
Apr 30, 2019
Merged

Add TM monitoring.json validity check for safety#3526
mitchell852 merged 3 commits intoapache:masterfrom
rob05c:tm-add-monitoring-json-safety-check

Conversation

@rob05c
Copy link
Copy Markdown
Member

@rob05c rob05c commented Apr 26, 2019

What does this PR (Pull Request) do?

Includes unit tests. No documentation, no changelog, no interface change.

Which Traffic Control components are affected by this PR?

  • Traffic Monitor

What is the best way to verify this PR?

go test. Run the Monitor, make sure it works as expected. Set the Traffic Ops database snapshot table monitoring column to {}, verify an error is logged, and TM continues to function. Restart Monitor, verify an error is logged and Monitor does not startup (you may need to delete the backup tmconfig.backup, to prevent it from starting with the backup when the TO monitoring.json is bad).

The following criteria are ALL met by this PR

  • This PR includes tests OR I have explained why tests are unnecessary
  • This PR includes documentation OR I have explained why documentation is unnecessary
  • This PR includes an update to CHANGELOG.md OR such an update is not necessary
  • This PR includes any and all required license headers
  • This PR ensures that database migration sequence is correct OR this PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

@rob05c rob05c added new feature A new feature, capability or behavior Traffic Monitor related to Traffic Monitor labels Apr 26, 2019
@rob05c rob05c force-pushed the tm-add-monitoring-json-safety-check branch from 98097e4 to 904bc58 Compare April 26, 2019 02:04
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Apr 26, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3589/
Test PASSed.

@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Apr 26, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3590/
Test FAILed.

Because monitoring.json DSes are currently empty, due to a TO bug.

See apache#3528
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Apr 26, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3592/
Test FAILed.

@rob05c rob05c marked this pull request as ready for review April 26, 2019 17:39
@rob05c
Copy link
Copy Markdown
Member Author

rob05c commented Apr 30, 2019

retest this please

@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Apr 30, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3605/
Test PASSed.

@mitchell852 mitchell852 merged commit 6cf10c9 into apache:master Apr 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

new feature A new feature, capability or behavior Traffic Monitor related to Traffic Monitor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve resiliency against malformed json in monitoring.json

4 participants