Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Jan 16, 2025

Adds tests for requests that would fill up the heap and crash elasticsearch but for our circuit breakers. In an ideal world we'd stream these results back to and this wouldn't crash anything. But we don't have that at the moment.

Adds tests for requests that would fill up the heap and crash
elasticsearch but for our circuit breakers. In an ideal world we'd
stream these results back to and this wouldn't crash anything. But we
don't have that at the moment.
@nik9000 nik9000 added >test Issues or PRs that are addressing/adding tests :Analytics/ES|QL AKA ESQL v9.0.0 v8.18.0 labels Jan 16, 2025
@nik9000 nik9000 requested review from alex-spies and ivancea January 16, 2025 18:05
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jan 16, 2025
}
return out;
}));
});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This caught a real bug! We weren't releasing the result pages if we blew up further down the line.

@nik9000 nik9000 added the auto-backport Automatically create backport pull requests when merged label Jan 16, 2025
@nik9000
Copy link
Member Author

nik9000 commented Jan 17, 2025

These tests are testing lots of matches per incoming row. We can try and check more things like that, but this is the worst case at the moment.

Copy link
Contributor

@ivancea ivancea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nik9000 nik9000 merged commit 03cb385 into elastic:main Jan 21, 2025
16 checks passed
@nik9000
Copy link
Member Author

nik9000 commented Jan 21, 2025

Thanks @ivancea !

nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Jan 21, 2025
* ESQL: Heap attack tests

Adds tests for requests that would fill up the heap and crash
elasticsearch but for our circuit breakers. In an ideal world we'd
stream these results back to and this wouldn't crash anything. But we
don't have that at the moment.

* Better date

* Update
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

nik9000 added a commit that referenced this pull request Jan 23, 2025
Adds tests for requests that would fill up the heap and crash
elasticsearch but for our circuit breakers. In an ideal world we'd
stream these results back to and this wouldn't crash anything. But we
don't have that at the moment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v8.18.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants