mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[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) {
|
||||||
|
try {
|
||||||
drainedTask.v2().onSuccess();
|
drainedTask.v2().onSuccess();
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("unexpected error during [{}]", e, source);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user