twosigma / riemann-jmx

A reliable JMX connector for Riemann
Eclipse Public License 1.0
25 stars 22 forks source link

always sleep on connection failure #3

Closed superstructor closed 9 years ago

superstructor commented 9 years ago

if an exception occurs in run-configuration the sleep is never evaluated resulting in heavy cpu load; e.g., on connection failure to the riemann server.

Thanks to @lucianjon for finding this bug and @moonranger for the solution.

dgrnbrg commented 9 years ago

Great! I've been thinking about how to do this; I like the elegance of this change :)