-
Notifications
You must be signed in to change notification settings - Fork 69
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
[jmx] if the exception is an IOException, throw it. Instance should be removed. #83
Conversation
@yannmh this is supposed to address the case when one of the instances goes down. If we don't handle the exception in the correct place we apparently enter a messy loop that potentiallys ends up having the jmxfetch stop reporting metrics for a rather large window of time ~15+ minutes if I remember correctly. |
@@ -6,3 +6,6 @@ jdk: | |||
notifications: | |||
slack: | |||
secure: bUPdpDtrBYvlJ93AmfqvPU6ZSZhFHZJiIoNf0bXJVNZyxp2rjfMC8BG6XkesbKk62s7NJM0yfZhhLAzjNG3tSA9iL5i3npbl8kRaUi2zEDOCEG0zZ+FX2NxTiNH937S6QRmCBHe9/KEkSRuMY3HNRUidAq8w6dVCrWxxj5NwxjU= | |||
|
|||
addons: | |||
hostname: dd-jmxfetch-testhost |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch @truthbk ! It looks good, feel free to merge it. |
[jmx] if the exception is an IOException, throw it. Instance should be removed.
* [FEATURE] Allow configuration of StatsD host. See [#85][] * [IMPROVEMENT] Re-throw IOException caught at the instance-level to handle them properly. See [#83][] [#83]: DataDog/jmxfetch#83 [#85]: DataDog/jmxfetch#85
**Changes** * [FEATURE] Allow configuration of StatsD host. See [#85][] * [IMPROVEMENT] Re-throw IOException caught at the instance-level to handle them properly. See [#83][] [#83]: DataDog/jmxfetch#83 [#85]: DataDog/jmxfetch#85
**Changes** * [FEATURE] Allow configuration of StatsD host. See [#85][] * [IMPROVEMENT] Re-throw IOException caught at the instance-level to handle them properly. See [#83][] [#83]: DataDog/jmxfetch#83 [#85]: DataDog/jmxfetch#85
The IOException should be handled here:
https://github.com/DataDog/jmxfetch/blob/master/src/main/java/org/datadog/jmxfetch/App.java#L204