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

[jmx] if the exception is an IOException, throw it. Instance should be removed. #83

Merged
merged 2 commits into from
Mar 22, 2016

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Mar 8, 2016

@truthbk
Copy link
Member Author

truthbk commented Mar 14, 2016

@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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yannmh
Copy link
Member

yannmh commented Mar 16, 2016

Nice catch @truthbk ! It looks good, feel free to merge it.

truthbk added a commit that referenced this pull request Mar 22, 2016
[jmx] if the exception is an IOException, throw it. Instance should be removed.
@truthbk truthbk merged commit b957b28 into master Mar 22, 2016
@truthbk truthbk deleted the jaime/instancefail branch March 22, 2016 14:22
olivielpeau added a commit to DataDog/dd-agent that referenced this pull request Mar 23, 2016
* [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
olivielpeau added a commit to DataDog/dd-agent that referenced this pull request Mar 23, 2016
**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
olivielpeau added a commit to DataDog/dd-agent that referenced this pull request Mar 30, 2016
**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
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

Successfully merging this pull request may close these issues.

2 participants