rob05c opened a new pull request, #7043: URL: https://github.com/apache/trafficcontrol/pull/7043
Fixes cache config generation for non-topology DSes that are edge->origin (via the edge's cachegroup's parent being the origin cachegroup) for DS Parameters. Due to a bug in the non-topology logic to determine if a cache is the last cache tier, that scenario was resulting in the config gen thinking the edge wasn't the last tier, and not inserting MSO retry parameters on the parent line. Fixing that bug exposed another bug, in the `unavailableServerRetryResponsesValid`. I changed that function to simply call `ParseRetryResponses` and return whether there was an error. Actually parsing is probably faster than the regex anyway, and this is the safest way to prevent bugs and discrepancies in the parse vs can-parse functions. This also fixes several tests around both of those bugs, which were testing the wrong things. It fixes both the retry parameter tests, which were accidentally testing that the last tier had the first tier params, and a remap.config test that was testing edge->origin http/https rewriting as if it were edge->mid. ## Which Traffic Control components are affected by this PR? <!-- Please delete all components from this list that are NOT affected by this PR. Feel free to add the name of a tool or script that is affected but not on the list. --> - Documentation - Traffic Control Cache Config (`t3c`, formerly ORT) - Traffic Control Health Client (tc-health-client) - Traffic Control Client <!-- Please specify which (Python, Go, or Java) --> - Traffic Monitor - Traffic Ops - Traffic Portal - Traffic Router - Traffic Stats - Grove - CDN in a Box - Automation <!-- Please specify which (GitHub Actions, Docker images, Ansible Roles, etc.) --> - unknown ## What is the best way to verify this PR? Run tests. Generate config for a non-topology DS which is edge->origin and has DS retry parameters, verify retry parameters are inserted into parent.config correctly. ## If this is a bugfix, which Traffic Control versions contained the bug? - 6.0.0 and newer ## PR submission checklist - [x] This PR has tests <!-- If not, please delete this text and explain why this PR does not need tests. --> - ~[x] This PR has documentation~ no docs, no interface change <!-- If not, please delete this text and explain why this PR does not need documentation. --> - [x] This PR has a CHANGELOG.md entry <!-- A fix for a bug from an ATC release, an improvement, or a new feature should have a changelog entry. --> - [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY** (see [the Apache Software Foundation's security guidelines](https://apache.org/security) for details) <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
