Skip to content

Commit bafdd81

Browse files
authored
ESQL: Reenable part of heap attack test (#114252)
This reenables a test and adds more debugging to another one. We'll use this to collect more information the next time it fails.
1 parent d47ca34 commit bafdd81

File tree

1 file changed

+1
-3
lines changed
  • test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack

1 file changed

+1
-3
lines changed

test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/HeapAttackIT.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ public void testManyEval() throws IOException {
355355
assertMap(map, mapMatcher.entry("columns", columns).entry("values", hasSize(10_000)).entry("took", greaterThanOrEqualTo(0)));
356356
}
357357

358-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch-serverless/issues/1874")
359358
public void testTooManyEval() throws IOException {
360359
initManyLongs();
361360
assertCircuitBreaks(() -> manyEval(490));
@@ -616,14 +615,13 @@ private void initMvLongsIndex(int docs, int fields, int fieldValues) throws IOEx
616615

617616
private void bulk(String name, String bulk) throws IOException {
618617
Request request = new Request("POST", "/" + name + "/_bulk");
619-
request.addParameter("filter_path", "errors");
620618
request.setJsonEntity(bulk);
621619
request.setOptions(
622620
RequestOptions.DEFAULT.toBuilder()
623621
.setRequestConfig(RequestConfig.custom().setSocketTimeout(Math.toIntExact(TimeValue.timeValueMinutes(5).millis())).build())
624622
);
625623
Response response = client().performRequest(request);
626-
assertThat(EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8), equalTo("{\"errors\":false}"));
624+
assertThat(entityAsMap(response), matchesMap().entry("errors", false).extraOk());
627625
}
628626

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

0 commit comments

Comments
 (0)