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

metrics-graphite-3.1.3: GraphiteUDP reporter throws exception #1100

Closed
cbring opened this issue Mar 10, 2017 · 3 comments
Closed

metrics-graphite-3.1.3: GraphiteUDP reporter throws exception #1100

cbring opened this issue Mar 10, 2017 · 3 comments
Labels
Milestone

Comments

@cbring
Copy link

@cbring cbring commented Mar 10, 2017

When using the metrics-graphite-3.1.3 GraphiteUDP implementation the reporter throws IllegalStateException upon each report except for the first invocation.

java.lang.IllegalStateException: Already connected
	at com.codahale.metrics.graphite.GraphiteUDP.connect(GraphiteUDP.java:53)
	at com.codahale.metrics.graphite.GraphiteReporter.report(GraphiteReporter.java:166)
	at com.codahale.metrics.ScheduledReporter.report(ScheduledReporter.java:162)
	at com.codahale.metrics.ScheduledReporter$1.run(ScheduledReporter.java:117)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)
@arteam
Copy link
Member

@arteam arteam commented Mar 10, 2017

Oh, right! Thanks for reporting this. I actually fixed this with #1080, but it was merged only to 3.2.0. I forgot that GraphiteReporter now invokes connect before send. I will release 3.1.4 shortly.

@arteam
Copy link
Member

@arteam arteam commented Mar 10, 2017

I've released dropwizard-metrics 3.1.4 to the Maven central repository. Should be available in a couple of hours.

@arteam arteam closed this Mar 10, 2017
@cbring
Copy link
Author

@cbring cbring commented Mar 13, 2017

Thanks for the speedy fix!

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

Successfully merging a pull request may close this issue.

None yet
2 participants