Skip to content

ESQL: Stabilize heap attack test #132045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,6 @@ private void initGiantTextField(int docs) throws IOException {
}
}
}

logger.info("loading many documents with one big text field - docs per bulk {}", docsPerBulk);

int fieldSize = Math.toIntExact(ByteSizeValue.ofMb(5).getBytes());
Expand Down Expand Up @@ -1064,6 +1063,15 @@ private void bulk(String name, String bulk) throws IOException {
);
Response response = client().performRequest(request);
assertThat(entityAsMap(response), matchesMap().entry("errors", false).extraOk());

/*
* Flush after each bulk to clear the test-time seenSequenceNumbers Map in
* TranslogWriter. Without this the server will OOM from time to time keeping
* stuff around to run assertions on.
*/
request = new Request("POST", "/" + name + "/_flush");
response = client().performRequest(request);
assertThat(entityAsMap(response), matchesMap().entry("_shards", matchesMap().extraOk().entry("failed", 0)).extraOk());
}

private void initIndex(String name, String bulk) throws IOException {
Expand Down