Added defensive code for scenario where thread id <= 0#784
Added defensive code for scenario where thread id <= 0#784fstab merged 1 commit intoprometheus:masterfrom
Conversation
|
PR to resolve #784 which will ultimately resolves prometheus/jmx_exporter#601 @fstab please review |
d343292 to
ed7b3b0
Compare
|
Hi Doug, thanks a lot for the PR. Could you elaborate what this is about? As far as I can see From the Javadoc of
So I'm wondering where non-positive thread IDs could come from? |
|
TL;DR ZooKeeper class https://issues.apache.org/jira/browse/ZOOKEEPER-4460 I feel that it shouldn't break Detailed Analysis ThreadExports Test Case Test Case Result (without the fix) Update: Added the test case to |
6c700de to
62625d6
Compare
fstab
left a comment
There was a problem hiding this comment.
Thanks a lot for the explanation. That's unexpected. I agree we should handle this and not just fail in that case. I left a few review comments. Thanks for picking this up!
simpleclient_hotspot/src/main/java/io/prometheus/client/hotspot/ThreadExports.java
Outdated
Show resolved
Hide resolved
simpleclient_httpserver/src/main/java/io/prometheus/client/exporter/HTTPServer.java
Outdated
Show resolved
Hide resolved
c965466 to
8f7206f
Compare
Signed-off-by: Doug Hoard <doug.hoard@gmail.com>
|
Thank you! |
Signed-off-by: Doug Hoard doug.hoard@gmail.com