From 87613ba8fee831f03e7aa7ad235f9278e6157a4c Mon Sep 17 00:00:00 2001 From: Techassi Date: Tue, 2 Jun 2026 12:20:05 +0200 Subject: [PATCH] feat(trino): Add 481 --- trino/airlift/boil-config.toml | 3 ++ ...se-header-size-to-Jetty-maxResponseH.patch | 35 +++++++++++++++ .../stackable/patches/424/patchable.toml | 2 + trino/boil-config.toml | 11 +++++ trino/trino/boil-config.toml | 6 +++ .../481/0001-Add-CycloneDX-plugin.patch | 38 ++++++++++++++++ ...ode-checking-because-flow-v0.241.0-f.patch | 44 +++++++++++++++++++ .../stackable/patches/481/patchable.toml | 2 + 8 files changed, 141 insertions(+) create mode 100644 trino/airlift/stackable/patches/424/0001-Apply-max-response-header-size-to-Jetty-maxResponseH.patch create mode 100644 trino/airlift/stackable/patches/424/patchable.toml create mode 100644 trino/trino/stackable/patches/481/0001-Add-CycloneDX-plugin.patch create mode 100644 trino/trino/stackable/patches/481/0002-Disable-web-ui-code-checking-because-flow-v0.241.0-f.patch create mode 100644 trino/trino/stackable/patches/481/patchable.toml diff --git a/trino/airlift/boil-config.toml b/trino/airlift/boil-config.toml index 0fc30d750..35de7be85 100644 --- a/trino/airlift/boil-config.toml +++ b/trino/airlift/boil-config.toml @@ -3,3 +3,6 @@ java-devel = "24" [versions."386".local-images] java-devel = "25" + +[versions."424".local-images] +java-devel = "25" diff --git a/trino/airlift/stackable/patches/424/0001-Apply-max-response-header-size-to-Jetty-maxResponseH.patch b/trino/airlift/stackable/patches/424/0001-Apply-max-response-header-size-to-Jetty-maxResponseH.patch new file mode 100644 index 000000000..62f7de44b --- /dev/null +++ b/trino/airlift/stackable/patches/424/0001-Apply-max-response-header-size-to-Jetty-maxResponseH.patch @@ -0,0 +1,35 @@ +From e00f9698117f651aa60ce5a96828577ac960d0c9 Mon Sep 17 00:00:00 2001 +From: Lukas Krug +Date: Wed, 27 May 2026 21:58:48 +0200 +Subject: Apply max response header size to Jetty maxResponseHeaderSize + +--- + .../src/main/java/io/airlift/http/server/HttpServer.java | 2 +- + .../src/main/java/io/airlift/http/server/HttpServerConfig.java | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/http-server/src/main/java/io/airlift/http/server/HttpServer.java b/http-server/src/main/java/io/airlift/http/server/HttpServer.java +index b57b871f3..e874a03af 100644 +--- a/http-server/src/main/java/io/airlift/http/server/HttpServer.java ++++ b/http-server/src/main/java/io/airlift/http/server/HttpServer.java +@@ -204,7 +204,7 @@ public class HttpServer + baseHttpConfiguration.setRequestHeaderSize(toIntExact(config.getMaxRequestHeaderSize().toBytes())); + } + if (config.getMaxResponseHeaderSize() != null) { +- baseHttpConfiguration.setResponseHeaderSize(toIntExact(config.getMaxResponseHeaderSize().toBytes())); ++ baseHttpConfiguration.setMaxResponseHeaderSize(toIntExact(config.getMaxResponseHeaderSize().toBytes())); + } + if (config.getOutputBufferSize() != null) { + baseHttpConfiguration.setOutputBufferSize(toIntExact(config.getOutputBufferSize().toBytes())); +diff --git a/http-server/src/main/java/io/airlift/http/server/HttpServerConfig.java b/http-server/src/main/java/io/airlift/http/server/HttpServerConfig.java +index ee53d470f..3abbfeaab 100644 +--- a/http-server/src/main/java/io/airlift/http/server/HttpServerConfig.java ++++ b/http-server/src/main/java/io/airlift/http/server/HttpServerConfig.java +@@ -387,6 +387,7 @@ public class HttpServerConfig + return this; + } + ++ @MaxDataSize("1GB") + public DataSize getMaxResponseHeaderSize() + { + return maxResponseHeaderSize; diff --git a/trino/airlift/stackable/patches/424/patchable.toml b/trino/airlift/stackable/patches/424/patchable.toml new file mode 100644 index 000000000..a3999815d --- /dev/null +++ b/trino/airlift/stackable/patches/424/patchable.toml @@ -0,0 +1,2 @@ +mirror = "https://github.com/stackabletech/airlift.git" +base = "9714f9095cea760f8a195f15c44a7f4f909ff23c" diff --git a/trino/boil-config.toml b/trino/boil-config.toml index 0ac6ddb8c..cfd6aed14 100644 --- a/trino/boil-config.toml +++ b/trino/boil-config.toml @@ -9,6 +9,7 @@ java-base = "24" [versions."477".build-arguments] jmx-exporter-version = "1.3.0" +# Deprecated since 26.7.0 [versions."479".local-images] java-base = "25" "trino/trino" = "479" @@ -18,3 +19,13 @@ java-base = "25" [versions."479".build-arguments] jmx-exporter-version = "1.3.0" + +[versions."481".local-images] +java-base = "25" +"trino/trino" = "481" +"trino/storage-connector" = "477" +# There is no 481 connector yet +# "trino/storage-connector" = "481" + +[versions."481".build-arguments] +jmx-exporter-version = "1.3.0" diff --git a/trino/trino/boil-config.toml b/trino/trino/boil-config.toml index 08e88edd1..d7f181622 100644 --- a/trino/trino/boil-config.toml +++ b/trino/trino/boil-config.toml @@ -9,3 +9,9 @@ java-devel = "25" # Airlift version comes from in # https://github.com/trinodb/trino/blob/479/pom.xml "trino/airlift" = "386" + +[versions."481".local-images] +java-devel = "25" +# Airlift version comes from in +# https://github.com/trinodb/trino/blob/481/pom.xml +"trino/airlift" = "424" diff --git a/trino/trino/stackable/patches/481/0001-Add-CycloneDX-plugin.patch b/trino/trino/stackable/patches/481/0001-Add-CycloneDX-plugin.patch new file mode 100644 index 000000000..ba0424bf0 --- /dev/null +++ b/trino/trino/stackable/patches/481/0001-Add-CycloneDX-plugin.patch @@ -0,0 +1,38 @@ +From 8a2396b467657c4f6fefc6a213148af062d45064 Mon Sep 17 00:00:00 2001 +From: Lukas Voetmand +Date: Fri, 6 Sep 2024 17:53:52 +0200 +Subject: Add CycloneDX plugin + +--- + pom.xml | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +diff --git a/pom.xml b/pom.xml +index 06089658e13..64211354c06 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -2841,6 +2841,24 @@ + + + ++ ++ org.cyclonedx ++ cyclonedx-maven-plugin ++ 2.9.1 ++ ++ application ++ 1.6 ++ false ++ ++ ++ ++ ++ makeBom ++ ++ package ++ ++ ++ + + + diff --git a/trino/trino/stackable/patches/481/0002-Disable-web-ui-code-checking-because-flow-v0.241.0-f.patch b/trino/trino/stackable/patches/481/0002-Disable-web-ui-code-checking-because-flow-v0.241.0-f.patch new file mode 100644 index 000000000..5fa954af5 --- /dev/null +++ b/trino/trino/stackable/patches/481/0002-Disable-web-ui-code-checking-because-flow-v0.241.0-f.patch @@ -0,0 +1,44 @@ +From 25c453b54fcf184934d3057d4f57606ddf8594ea Mon Sep 17 00:00:00 2001 +From: dervoeti +Date: Wed, 18 Jun 2025 14:05:10 +0200 +Subject: Disable web-ui code checking, because flow v0.241.0 for non-x86 + systems requires glibc 2.35, as of 2025-06-18 our UBI image comes with glibc + 2.34. This patch can likely be removed once we ship a newer version of glibc. + +--- + core/trino-web-ui/pom.xml | 22 ---------------------- + 1 file changed, 22 deletions(-) + +diff --git a/core/trino-web-ui/pom.xml b/core/trino-web-ui/pom.xml +index 986d69101b2..3eb18fc3a2d 100644 +--- a/core/trino-web-ui/pom.xml ++++ b/core/trino-web-ui/pom.xml +@@ -104,28 +104,6 @@ + src/main/resources/webapp/src + + +- +- check (webapp) +- +- npm +- +- verify +- +- run ${frontend.check.goal} +- src/main/resources/webapp/src +- +- +- +- check (webapp-preview) +- +- npm +- +- verify +- +- run ${frontend.check.goal} +- src/main/resources/webapp-preview +- +- + + package (webapp-preview) + diff --git a/trino/trino/stackable/patches/481/patchable.toml b/trino/trino/stackable/patches/481/patchable.toml new file mode 100644 index 000000000..2fa8ad756 --- /dev/null +++ b/trino/trino/stackable/patches/481/patchable.toml @@ -0,0 +1,2 @@ +mirror = "https://github.com/stackabletech/trino.git" +base = "c4ac66cb4f86728b48f15b10d6ab3c1aa0166d3c"