apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.08k stars 344 forks source link

ORT: Delete untracked files due to removed header rewrite or delivery delivery services #5149

Open smalenfant opened 4 years ago

smalenfant commented 4 years ago

I'm submitting a enhancement request

Today, removed header rewrite from TO or deleted delivery services keeps the files on disk. I would call this garbage collection that needs cleaned up.

This might apply more than just header rewrite.

Traffic Control components affected ...

Current behavior:

header rewrite are kept when header rewrite parameter are removed and when delivery services are deleted.

New behavior:

Delete untracked files due to the above

Minimal reproduction of the problem with instructions:

rob05c commented 4 years ago

More than just garbage, this can potentially cause bugs. E.g. if a Header Rewrite is completely removed from a DS, it can end up sticking around because ORT no longer knows the file exists