You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Statsd UDP epoll warn logs are verbose when statsd is down #2624
Testing on Linux, I can see we get logs like the following with #2611 (and therefore epoll enabled) when the statsd daemon isn't running:
2021-05-28 03:11:45.544 WARN 6373 --- [ udp-epoll-1] i.m.s.reactor.netty.channel.FluxReceive : [id:35f314ec, L:/127.0.0.1:60434 - R:localhost/127.0.0.1:8125] An exception has been observed post termination, use DEBUG level to see the full stack: java.net.PortUnreachableException: readAddress(..) failed: Connection refused
2021-05-28 03:11:45.554 WARN 6373 --- [ udp-epoll-1] i.m.s.reactor.netty.channel.FluxReceive : [id:35f314ec, L:/127.0.0.1:60434 - R:localhost/127.0.0.1:8125] An exception has been observed post termination, use DEBUG level to see the full stack: java.net.PortUnreachableException: readAddress(..) failed: Connection refused
This is a bit verbose compared to without epoll enabled, in this scenario of the statsd daemon being down.
With epoll enabled and the statsd daemon running, metrics are received and no logs are output, as expected.
Reacted by cott, Ganesh Tiwari, Jakob Fiegerl, Frédéric Dubuisson, mallik-soupati, Wojciech Donderowicz, Rounak Datta, Sreevathsan Ravichandran and smar-ian-phillips
changed the title [-]Statsd epoll warn logs are verbose when statsd down[/-][+]Statsd UDP epoll warn logs are verbose when statsd down[/+]on Nov 11, 2021
It has not been fixed (this issue is still open), but note that this issue is only about overly verbose logging, and not a functional issue. If the configured statsd daemon address is reachable, these logs will not be output and your metrics will be sent. If you are experiencing a functional issue, please open a separate issue with details so we can diagnose that.
@shakuzen I recognize this may not be a top priority, but I'm hoping to take you up on the offer to review a pull request (specifically #4042). I do think that change will make a big difference with minimal risk.
changed the title [-]Statsd UDP epoll warn logs are verbose when statsd down[/-][+]Statsd UDP epoll warn logs are verbose when statsd is down[/+]on Oct 23, 2026
Activity
[-]Statsd epoll warn logs are verbose when statsd down[/-][+]Statsd UDP epoll warn logs are verbose when statsd down[/+]sureshnomula74 commentedon Oct 14, 2022
@shakuzen is this issue fixed?
shakuzen commentedon Oct 18, 2022
It has not been fixed (this issue is still open), but note that this issue is only about overly verbose logging, and not a functional issue. If the configured statsd daemon address is reachable, these logs will not be output and your metrics will be sent. If you are experiencing a functional issue, please open a separate issue with details so we can diagnose that.
3 remaining items
shakuzen commentedon Mar 14, 2023
No. We would be happy to review such a pull request. The issue is labelled with the
help wantedlabel.jon-signal commentedon Aug 22, 2023
I've made an attempt to fix this in #4042.
jon-signal commentedon Apr 16, 2024
@shakuzen I recognize this may not be a top priority, but I'm hoping to take you up on the offer to review a pull request (specifically #4042). I do think that change will make a big difference with minimal risk.
shakuzen commentedon Apr 18, 2024
Thanks for the reminder. Sorry we didn't review earlier. I've left a review on the PR now.
Avoid logging a warning for every packet when the StatsD UDP server i…
[-]Statsd UDP epoll warn logs are verbose when statsd down[/-][+]Statsd UDP epoll warn logs are verbose when statsd is down[/+]