Skip to content

Statsd UDP epoll warn logs are verbose when statsd is down #2624

Closed

Description

@shakuzen

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.

Originally posted by @shakuzen in #2611 (comment)

Activity

  1. added
    registry: statsd
    on May 27, 2021
  2. added this to the 1.8.0-M1 milestone on May 27, 2021
  3. modified the milestones: 1.8 tentative, 1.8.0 on Oct 14, 2021
  4. 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
  5. modified the milestones: 1.8.0, 1.8.x on Nov 11, 2021
  6. sureshnomula74 commented on Oct 14, 2022

    @sureshnomula74

    @shakuzen is this issue fixed?

  7. shakuzen commented on Oct 18, 2022

    @shakuzen
    MemberAuthor

    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.

  8. added
    help wanted
    on Oct 18, 2022
  9. modified the milestones: 1.8.x, 1.9.x on Jan 12, 2023
  10. 3 remaining items

  11. shakuzen commented on Mar 14, 2023

    @shakuzen
    MemberAuthor

    is there any open PR to fix this issue ?

    No. We would be happy to review such a pull request. The issue is labelled with the help wanted label.

  12. jon-signal commented on Aug 22, 2023

    @jon-signal

    I've made an attempt to fix this in #4042.

  13. jon-signal commented on Apr 16, 2024

    @jon-signal

    We would be happy to review such a pull request.

    @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.

  14. shakuzen commented on Apr 18, 2024

    @shakuzen
    MemberAuthor

    Thanks for the reminder. Sorry we didn't review earlier. I've left a review on the PR now.

  15. modified the milestones: 1.9.x, 1.x on May 27, 2026
  16. modified the milestones: 1.x, 1.16.8 on Oct 15, 2026
  17. added a commit that references this issue on Oct 15, 2026
    3bf1fd5
  18. 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
  19. added
    bug
    and removed
    help wanted
    type: task
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugregistry: statsd

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions