You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add exception handling for MBean disappearing between listing and evaluation
Closesinstaclustr#27.
Squashed commit of the following:
commit c8eafefc7732d84114c990f81d6ad70489dafcec
Author: Adam Zegelin <adam@zegelin.com>
Date: Fri Feb 21 15:20:55 2020 -0800
Code cleanup.
commit 425df4699f963213c5498b3f1eedec5fdb38a609
Merge: 0b5e2c021307ab
Author: Adam Zegelin <adam@zegelin.com>
Date: Fri Feb 21 15:11:05 2020 -0800
Merge branch 'fix-mbean-jmx-harvester' of https://github.com/suhailpatel/cassandra-exporter into suhailpatel-fix-mbean-jmx-harvester
commit 21307ab
Author: Suhail Patel <me@suhailpatel.com>
Date: Tue Jul 9 16:46:24 2019 +0100
Dynamically update the set of current MBeans as we go along
Again, if exceptions occur in other parts of the pipeline, MBeans are
registered but are not removed which causes other bugs.
Note that we use an immutable copy of the sets because the currentMBeans
set is being updated constantly.
commit c4b46dc
Author: Suhail Patel <me@suhailpatel.com>
Date: Sat Jul 6 20:51:06 2019 +0100
Add exception handling for MBean disappearing between listing and evaluation
There was a condition where evaluating the set of added MBean can cause
an exception. This would occur if the MBean had disappeared between
listing the MBean and extracting the MBean info. If this happened in the
middle of a set of added MBeans, it would mean our current MBeans set in
the JMXHarvester isn't up to date with the current MBeans.
This has cascading impact down the line because there are MBeans
registered from previous runs that are not correctly associated with the
set of current MBeans. This means they will never be cleaned up. This
has impact on the collect stage which then results in other exceptions.
We found this occur during Repair jobs when the repair durations are
very small.
0 commit comments