Skip to content

Commit

Permalink
Fix BWC for compute listener (#110615)
Browse files Browse the repository at this point in the history
ComputeResponse from old nodes may have a null value instead of an empty
list for profiles.

Relates #110400 Closes #110591
  • Loading branch information
dnhatn authored Jul 8, 2024
1 parent e95cbb4 commit bdf9a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ tests:
- class: "org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests"
issue: "https://github.com/elastic/elasticsearch/issues/110408"
method: "testCreateAndRestorePartialSearchableSnapshot"
- class: "org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT"
issue: "https://github.com/elastic/elasticsearch/issues/110591"

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ ActionListener<Void> acquireAvoid() {
ActionListener<ComputeResponse> acquireCompute() {
return acquireAvoid().map(resp -> {
responseHeaders.collect();
if (resp != null && resp.getProfiles().isEmpty() == false) {
collectedProfiles.addAll(resp.getProfiles());
var profiles = resp.getProfiles();
if (profiles != null && profiles.isEmpty() == false) {
collectedProfiles.addAll(profiles);
}
return null;
});
Expand Down

0 comments on commit bdf9a2e

Please sign in to comment.