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

Fix t3c cache to invalidate on version change#6883

Merged
ocket8888 merged 1 commit into
apache:masterfrom
rob05c:fix-t3c-rpm-delete-cache
Jul 15, 2022
Merged

Fix t3c cache to invalidate on version change#6883
ocket8888 merged 1 commit into
apache:masterfrom
rob05c:fix-t3c-rpm-delete-cache

Conversation

@rob05c

@rob05c rob05c commented Jun 3, 2022

Copy link
Copy Markdown
Member

Previously, both upgrades and downgrades of trafficcontrol-cache-config could cause strange issues in config generation, from trying to re-use a cache with incompatibilities resulting in missing or different fields.

This fixes t3c to invalidate the cache if the running version is different than the version which created the cache.

Which Traffic Control components are affected by this PR?

  • Traffic Control Cache Config (t3c, formerly ORT)

What is the best way to verify this PR?

Run a previous version of t3c, upgrade, verify from log messages and/or HTTP IMS requests that the cache is not used.

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

  • 6.0.0
  • 6.0.1
  • 6.0.2
  • 6.1.0

PR submission checklist

  • [x] This PR has tests no tests, testing requires HTTP requests and thus can't be unit tested, and integration tests don't support multiple versions yet.
  • [x] This PR has documentation no docs, cache behavior is not documented.
  • This PR has a CHANGELOG.md entry
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

@rob05c rob05c added bug something isn't working as intended cache-config Cache config generation labels Jun 3, 2022
@rob05c rob05c force-pushed the fix-t3c-rpm-delete-cache branch from dd6022c to 77e3576 Compare June 3, 2022 20:25
Comment thread cache-config/t3cutil/getdata.go Outdated
Comment thread cache-config/t3cutil/getdata.go Outdated
Comment thread cache-config/t3cutil/getdatacfg.go Outdated
@rob05c rob05c force-pushed the fix-t3c-rpm-delete-cache branch from 77e3576 to 4fec979 Compare July 7, 2022 18:54
@rob05c rob05c force-pushed the fix-t3c-rpm-delete-cache branch from 4fec979 to 8835947 Compare July 7, 2022 19:02

@ocket8888 ocket8888 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry, I forgot about this over my vacation

@ocket8888 ocket8888 merged commit dc859ed into apache:master Jul 15, 2022
zrhoffman pushed a commit to zrhoffman/trafficcontrol that referenced this pull request Oct 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug something isn't working as intended cache-config Cache config generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants