Browse files

reset jmx connection on error so it retries next time around

  • Loading branch information...
1 parent 8ce6fef commit ceffd78280ca83fc95ab522b48c0f664ef6edf36 Jake Luciani committed Oct 3, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 pom.xml
  2. +1 −0 src/main/java/com/bluemountain/RiemannCassandraClient.java
View
2 pom.xml
@@ -4,7 +4,7 @@
<groupId>com.bluemountain</groupId>
<artifactId>riemann-cassandra</artifactId>
- <version>0.0.1-SNAPSHOT</version>
+ <version>0.0.1</version>
<name>Riemann tool for streaming cassandra metrics</name>
<repositories>
View
1 src/main/java/com/bluemountain/RiemannCassandraClient.java
@@ -179,6 +179,7 @@ private void emitMetrics() {
riemannClient.sendEvents(events.toArray(new Event[] {}));
} catch (Throwable t) {
// Try again later
+ jmxClient = null;
t.printStackTrace();
}
}

0 comments on commit ceffd78

Please sign in to comment.