ocket8888 edited a comment on issue #4045: Requests to cache_stats endpoint 
returns Internal Server Error
URL: https://github.com/apache/trafficcontrol/issues/4045#issuecomment-548024439
 
 
   Supposedly they're caused by the same root issue, which would make it a 
duplicate, in my opinion.
   
   But firstly, we need to make sure that's actually what's going on. When 
Traffic Stats has just started, it won't have any data. If you request a time 
period for which it has no data, instead of returning a set of zero data points 
- or even just `null`s -InfluxDB will send a totally empty response. When that 
happens, Traffic Ops doesn't know why or what to do about it, and so it throws 
up its hands and gives the client back an Internal Server Error. "Expected 
Behavior" in that scenario could be to hand back a valid, empty array, but as 
has been previously discussed, Traffic Ops should not disclose struggling 
components in these scenarios.
   
   So the key to understanding what issue is taking place is
   > _"Wait about 5 minutes and try again - does the problem still manifest?"_

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to