Skip to content

Commit 92081d4

Browse files
nielsbaumanywangd
authored andcommitted
Add MP fix annotation for cluster state listeners (MP-1966)
We're catching MP exceptions when applying cluster state listeners to avoid noise in the logs, but we shouldn't forget to remove this `catch` block at some point in the future.
1 parent 2607f64 commit 92081d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/cluster/service/ClusterApplierService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor;
3434
import org.elasticsearch.common.util.concurrent.ThreadContext;
3535
import org.elasticsearch.core.Assertions;
36+
import org.elasticsearch.core.FixForMultiProject;
3637
import org.elasticsearch.core.Nullable;
3738
import org.elasticsearch.core.Releasable;
3839
import org.elasticsearch.core.TimeValue;
@@ -579,6 +580,7 @@ private void callClusterStateListeners(ClusterChangedEvent clusterChangedEvent,
579580
callClusterStateListener(clusterChangedEvent, stopWatch, timeoutClusterStateListeners.keySet());
580581
}
581582

583+
@FixForMultiProject(description = "Don't catch multi-project exception")
582584
private static void callClusterStateListener(
583585
ClusterChangedEvent clusterChangedEvent,
584586
Recorder stopWatch,

0 commit comments

Comments
 (0)