Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,6 @@ private void runTask(String source, Function<ClusterState, ClusterState> updateF
);
warnAboutSlowTaskIfNeeded(executionTime, source, stopWatch);
} catch (Exception e) {
// failing to apply a cluster state with an exception indicates a bug in validation or in one of the appliers; if we
// continue we will retry with the same cluster state but that might not help.
assert applicationMayFail();
timedListener.onFailure(e);
TimeValue executionTime = getTimeSince(startTimeMillis);
if (logger.isTraceEnabled()) {
Expand All @@ -492,6 +489,9 @@ private void runTask(String source, Function<ClusterState, ClusterState> updateF
e
);
}
// failing to apply a cluster state with an exception indicates a bug in validation or in one of the appliers; if we
// continue we will retry with the same cluster state but that might not help.
assert applicationMayFail();
} finally {
clearIsApplyingClusterState();
}
Expand Down