apache / trafficcontrol

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

Sometimes Traffic router doesn't load latest configuration (cr-config.json) #6072

Open stackexpress-jawed opened 3 years ago

stackexpress-jawed commented 3 years ago

I'm submitting a ...

Traffic Control components affected ...

Current behavior:

Sometimes Traffic router doesn't load latest configuration

Traffic router loads the config file from Traffic monitor based on a timestamp of snapshot (config files in JSON format) but sometime it rejects the snapshot due to older timestamp. Therefore, traffic router does not create DNS records for the new services.

Error Logs

INFO  2021-07-23T07:45:00.589 [AsyncHttpClient-3-21] com.comcast.cdn.traffic_control.traffic_router.core.config.ConfigHandler - Exiting processConfig: Incoming TrConfig snapshot timestamp (1627040665) is older or equal to the loaded timestamp (1627040675); unable to process
WARN  2021-07-23T07:45:00.589 [AsyncHttpClient-3-21] com.comcast.cdn.traffic_control.traffic_router.core.util.PeriodicResourceUpdater - File rejected: /opt/traffic_router/db/cr-config.json

Expected behavior:

Minimal reproduction of the problem with instructions:

Anything else:

anton-codeit commented 1 year ago

@stackexpress-jawed @zrhoffman Hey guys. Any updates here?