Skip to content

Commit f6c6420

Browse files
committed
Polish code + add documentation
1 parent dcf319d commit f6c6420

File tree

4 files changed

+280
-179
lines changed

4 files changed

+280
-179
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlExecutionInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ private Iterator<? extends ToXContent> onlyFailuresToXContent() {
316316
* @return a stream of clusters with that status
317317
*/
318318
public Stream<Cluster> getClusterStates(Cluster.Status status) {
319-
assert clusterInfo.isEmpty() == false : "ClusterMap in EsqlExecutionInfo must not be empty";
319+
// assert clusterInfo.isEmpty() == false : "ClusterMap in EsqlExecutionInfo must not be empty";
320320
return clusterInfo.values().stream().filter(cluster -> cluster.getStatus() == status);
321321
}
322322

0 commit comments

Comments
 (0)