Dewayne Richardson created TC-295:
-------------------------------------
Summary: Invalid DS regex causes nasty exception and unexpected
results Github Issue #514
Key: TC-295
URL: https://issues.apache.org/jira/browse/TC-295
Project: Traffic Control
Issue Type: Bug
Reporter: Dewayne Richardson
Fix For: 2.0.0
If a host regex (probably others) is specified as a plain string, rather than a
real regex (e.g.: test vs ..mydeliveryservice..), the following exception
occurs in Traffic Router, and the user would have to be watching the logs to
see that something went wrong. Additionally, it is not clear why the failure
occurred.
Improve TO in general such that the regex is clearly defined (documented?) and
potentially checked so that it doesn't get added to the CRConfig until it is
what we expect to see. Additionally, discuss whether we want to support
specific strings (e.g.: test) instead of a full regex. Doing so seems to be
counter to the intent of the regex in the first place, so I do not think that
this is a viable option at this time.
WARN 2015-09-01T14:25:07.237 [New I/O worker #1]
com.comcast.cdn.traffic_control.traffic_router.core.util.PeriodicResourceUpdater
- 1 java.lang.ArrayIndexOutOfBoundsException: 1 at
com.comcast.cdn.traffic_control.traffic_router.core.dns.ZoneManager.populateZoneMap(ZoneManager.java:311)
at
com.comcast.cdn.traffic_control.traffic_router.core.dns.ZoneManager.generateZones(ZoneManager.java:132)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)