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 t3c for large number of added files #7069

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

rob05c
Copy link
Member

@rob05c rob05c commented Sep 12, 2022

Fixes t3c-check-refs to accept the list of added files over stdin or the input file, instead of an arg.

Also changes the corresponding t3c-apply call of check-refs to pass the list as input.

Because many operating systems (including the supported CentOS Linux) have argument length limits, this caused t3c-check-refs and therefore t3c-apply to fail for large numbers of added files.

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 tests. Run t3c with a large number of newly-added files, verify it succeeds.

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

  • 6.0.0 and newer

PR submission checklist

Fixes t3c-check-refs to accept the list of added files over stdin
or the input file, instead of an arg.

Also changes the corresponding t3c-apply call of check-refs to pass
the list as input.

Because many operating systems (including the supported CentOS Linux)
have argument length limits, this caused t3c-check-refs and therefore
t3c-apply to fail for large numbers of added files.
@rob05c rob05c added bug something isn't working as intended cache-config Cache config generation labels Sep 12, 2022
@ocket8888 ocket8888 added the low impact affects only a small portion of a CDN, and cannot itself break one label Sep 12, 2022
Copy link
Contributor

@jpappa200 jpappa200 left a comment

Choose a reason for hiding this comment

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

Didin't see a changelog entry, otherwise looks great.

@zrhoffman zrhoffman merged commit 203f665 into apache:master Sep 19, 2022
zrhoffman pushed a commit to zrhoffman/trafficcontrol that referenced this pull request Oct 2, 2022
Fixes t3c-check-refs to accept the list of added files over stdin
or the input file, instead of an arg.

Also changes the corresponding t3c-apply call of check-refs to pass
the list as input.

Because many operating systems (including the supported CentOS Linux)
have argument length limits, this caused t3c-check-refs and therefore
t3c-apply to fail for large numbers of added files.
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 cache-config Cache config generation low impact affects only a small portion of a CDN, and cannot itself break one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants