[Discovery] Add try/catch around repetitive onSuccess calls
This commit is contained in:
parent
d15909716b
commit
680fb36637
|
@ -884,7 +884,11 @@ public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implemen
|
||||||
@Override
|
@Override
|
||||||
public void clusterStateProcessed(String source, ClusterState oldState, ClusterState newState) {
|
public void clusterStateProcessed(String source, ClusterState oldState, ClusterState newState) {
|
||||||
for (Tuple<DiscoveryNode, MembershipAction.JoinCallback> drainedTask : drainedTasks) {
|
for (Tuple<DiscoveryNode, MembershipAction.JoinCallback> drainedTask : drainedTasks) {
|
||||||
drainedTask.v2().onSuccess();
|
try {
|
||||||
|
drainedTask.v2().onSuccess();
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("unexpected error during [{}]", e, source);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue