Optimize logging pending task summary #44658
Labels
:Distributed Coordination/Cluster Coordination
Cluster formation and cluster state publication, including cluster membership and fault detection.
help wanted
adoptme
>non-issue
The below allocation hotspot was observed in a 6.2 cluster where there was a flood of shard-failed events fixed in 6.4 as a part of #31313. Although this might not recur on higher versions for shard-failed specifically but still can if there are too many pending tasks but since the below code seems to be used only for logging task summary in debug mode or warning if it turned out to be a slow running task, it seems wasteful for most of the cases.
I think it would make more sense to possibly defer this.
elasticsearch/server/src/main/java/org/elasticsearch/cluster/ClusterStateTaskExecutor.java
Lines 60 to 62 in b33f384
The text was updated successfully, but these errors were encountered: