Commit 88188b11 authored by ipatini's avatar ipatini
Browse files

EMS: Common: Fixed a bug in NetdataCollector that prevented the removal of...

EMS: Common: Fixed a bug in NetdataCollector that prevented the removal of local Netdata agent from ignored nodes list, after successfully recovery (that resulted in continuous recovery attempts).
parent 80c50fa8
Pipeline #20874 passed with stages
in 13 minutes and 57 seconds
......@@ -142,16 +142,12 @@ public class NetdataCollector implements InitializingBean, Runnable, EventBus.Ev
log.trace("Collectors::Netdata: nodeAddress={}", nodeAddress);
if (RecoveryConstant.SELF_HEALING_RECOVERY_COMPLETED.equals(topic)) {
if (StringUtils.isNotBlank(nodeAddress)) {
log.info("Collectors::Netdata: Resuming collection from Node: {}", nodeAddress);
ignoredNodes.remove(nodeAddress);
}
} else
if (RecoveryConstant.SELF_HEALING_RECOVERY_GIVE_UP.equals(topic)) {
if (StringUtils.isNotBlank(nodeAddress)) {
log.info("Collectors::Netdata: Giving up collection from Node: {}", nodeAddress);
ignoredNodes.put(nodeAddress, null);
}
} else
if (EventConstant.EVENT_CLIENT_CONFIG_UPDATED.equals(topic)) {
log.info("Collectors::Netdata: Client configuration updated. Purging nodes without recovery task from ignore list: Old ignore list nodes: {}", ignoredNodes.keySet());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment