Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TM issue where CRConfig is never updated #6748

Merged
merged 2 commits into from
Apr 13, 2022

Conversation

rawlinp
Copy link
Contributor

@rawlinp rawlinp commented Apr 13, 2022

PR #6625 reduced the TM dependency on CRConfig data, but it accidentally
caused TM to no longer poll for new CRConfig snapshots. This adds the
CRConfig request back into the polling loop so that it updates its
in-memory copy for internal use (if necessary) and for serving to TR.


Which Traffic Control components are affected by this PR?

  • Traffic Monitor

What is the best way to verify this PR?

Start TM, then take a new snapshot, and ensure that TM updates its crconfig.backup file with the new snapshot and serves the new snapshot via its /publish/CrConfig endpoint.

If this is a bugfix, which Traffic Control versions contained the bug?

  • master

PR submission checklist

PR apache#6625 reduced the TM dependency on CRConfig data, but it accidentally
caused TM to no longer poll for new CRConfig snapshots. This adds the
CRConfig request back into the polling loop so that it updates its
in-memory copy for internal use (if necessary) and for serving to TR.
@rawlinp rawlinp added bug something isn't working as intended Traffic Monitor related to Traffic Monitor high impact impacts the basic function, deployment, or operation of a CDN labels Apr 13, 2022
@ocket8888
Copy link
Contributor

Go Format failure is a bug in Go (see golang/go#52333)

Copy link
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests pass now that we have a workaround for the VCS issue

@ocket8888 ocket8888 merged commit 37a744f into apache:master Apr 13, 2022
@rawlinp rawlinp deleted the fix-tm-crconfig-poll branch April 13, 2022 18:05
zrhoffman pushed a commit to zrhoffman/trafficcontrol that referenced this pull request Oct 2, 2022
* Fix TM issue where CRConfig is never updated

PR apache#6625 reduced the TM dependency on CRConfig data, but it accidentally
caused TM to no longer poll for new CRConfig snapshots. This adds the
CRConfig request back into the polling loop so that it updates its
in-memory copy for internal use (if necessary) and for serving to TR.

* Add --buildvcs=false to 'go test' action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended high impact impacts the basic function, deployment, or operation of a CDN Traffic Monitor related to Traffic Monitor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants