Skip to content

Commit

Permalink
Fix logging of cluster state update descriptions
Browse files Browse the repository at this point in the history
In elastic#28941 we changed the computation of cluster state task descriptions but
this introduced a bug in which we only log the empty descriptions (rather than
the non-empty ones). This PR fixes that.
  • Loading branch information
DaveCTurner committed Oct 1, 2018
1 parent d25e3ef commit 5652ff5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ default void clusterStatePublished(ClusterChangedEvent clusterChangedEvent) {
* This allows groupd task description but the submitting source.
*/
default String describeTasks(List<T> tasks) {
return String.join(", ", tasks.stream().map(t -> (CharSequence)t.toString()).filter(t -> t.length() == 0)::iterator);
return String.join(", ", tasks.stream().map(t -> (CharSequence)t.toString()).filter(t -> t.length() > 0)::iterator);
}

/**
Expand Down

0 comments on commit 5652ff5

Please sign in to comment.