Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client stuck on PortUnreachableException #45

Open
francisdb opened this issue Dec 5, 2016 · 7 comments
Open

Client stuck on PortUnreachableException #45

francisdb opened this issue Dec 5, 2016 · 7 comments

Comments

@francisdb
Copy link

v3.1.0

We create a single client for the lifetime of our services but after a while they get stuck on this PortUnreachableException. Probably our server is unreachable for a few seconds and the client never recovers. A restart of the service fixes the issue.

java.net.PortUnreachableException: null
    at sun.nio.ch.DatagramDispatcher.write0(DatagramDispatcher.java)
    at sun.nio.ch.DatagramDispatcher.write(DatagramDispatcher.java:51)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
    at sun.nio.ch.IOUtil.write(IOUtil.java:65)
    at sun.nio.ch.DatagramChannelImpl.write(DatagramChannelImpl.java:605)
    at com.timgroup.statsd.NonBlockingUdpSender.blockingSend(NonBlockingUdpSender.java:72)
    at com.timgroup.statsd.NonBlockingUdpSender.access$000(NonBlockingUdpSender.java:13)
    at com.timgroup.statsd.NonBlockingUdpSender$2.run(NonBlockingUdpSender.java:60)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
@shankarshastri
Copy link

shankarshastri commented Feb 21, 2017

yes I am also facing the same issue.
Is there going to be a fix or a workaround?

@francisdb
Copy link
Author

we switched to https://github.com/DataDog/java-dogstatsd-client

@shankarshastri
Copy link

How did you guys fix it in the other library?

@francisdb
Copy link
Author

The problem is fixed there

@shankarshastri
Copy link

Will It Retry Or Raise A Exception?

@shankarshastri
Copy link

If statsd server is up and is stopped at midpoint. I am not getting any exception even after using java-dogstatsd-client.

@francisdb
Copy link
Author

I suggest you create a new issue on that project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants