diff --git a/docs/changelog/145415.yaml b/docs/changelog/145415.yaml new file mode 100644 index 0000000000000..70e115c6c51ae --- /dev/null +++ b/docs/changelog/145415.yaml @@ -0,0 +1,7 @@ +pr: 145415 +summary: "Fix CsvIT overflow tests failing on JDK 25 due to missing OmitStackTraceInFastThrow flag" +area: ES|QL +type: bug +issues: + - 145415 + - 145424 diff --git a/muted-tests.yml b/muted-tests.yml index 2c9c3ef25e347..5c864012d2275 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -356,11 +356,6 @@ tests: - class: org.elasticsearch.xpack.ml.integration.DatafeedJobsIT method: testDatafeedTimingStats_DatafeedRecreated issue: https://github.com/elastic/elasticsearch/issues/138348 -- class: org.elasticsearch.xpack.esql.CsvIT - methods: - - "test {csv-spec:stats.*Overflow*}" - - "test {csv-spec:k8s-timeseries-sum-over-time.*Overflow*}" - issue: https://github.com/elastic/elasticsearch/issues/145415 - class: org.elasticsearch.xpack.esql.CsvTests method: test {csv-spec:unsigned_long.evalNullEqualsUnsignedLong} issue: https://github.com/elastic/elasticsearch/issues/145426 diff --git a/x-pack/plugin/esql/build.gradle b/x-pack/plugin/esql/build.gradle index 275602d72d080..9bec8cdd71f3a 100644 --- a/x-pack/plugin/esql/build.gradle +++ b/x-pack/plugin/esql/build.gradle @@ -314,6 +314,11 @@ tasks.named('internalClusterTestTestingConventions').configure { // This is similar to the test task above, but needed for the LookupJoinTypesIT which runs in the internalClusterTest task // and generates a types table for the LOOKUP JOIN command. It is possible in future we might have move tests that do this. tasks.named("internalClusterTest").configure { + // prevent empty stacktraces on JDK 25 for intrinsic Math.*Exact invocations + // https://bugs.openjdk.org/browse/JDK-8367990 + // https://github.com/elastic/elasticsearch/issues/135009 + jvmArgs '-XX:-OmitStackTraceInFastThrow' + def injected = project.objects.newInstance(Injected) File snippetsFolder = file("build/testrun/internalClusterTest/temp/esql/_snippets") def snippetsDocFolder = file("${rootDir}/docs/reference/query-languages/esql/_snippets")