This is an automated email from the ASF dual-hosted git repository.
jerryshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 5438750774 [#14725] chore(deps): Upgrade Netty to 4.1.140.Final and
XNIO API to 3.8.17.Final (#14726)
5438750774 is described below
commit 54387507745ee30f1c60e045bf1fa90204f91e06
Author: geyanggang <[email protected]>
AuthorDate: Mon Nov 9 10:14:47 2026 +0800
[#14725] chore(deps): Upgrade Netty to 4.1.140.Final and XNIO API to
3.8.17.Final (#14726)
### What changes were proposed in this pull request?
- Add `netty` (4.1.140.Final) and `xnio` (3.8.17.Final) to the version
catalog, plus a `netty-bom` entry.
- catalog-glue: apply the Netty BOM in a dedicated configuration
(`isCanBeConsumed = false`, `isCanBeResolved = false`) extended only by
the module's own compile/runtime/test classpaths. All Netty artifacts
brought in by the AWS SDK move together (4.1.118 -> 4.1.140) and nothing
is exported to dependent modules.
- server-common and iceberg-common: add a constraint for `xnio-api`
where the Kerby bundle (which pulls it in through `kerb-admin`) is
declared. The same constraint reaches the server `libs`,
iceberg-rest-server, iceberg-rest-server-experiment and
catalog-lakehouse-iceberg. `xnio-api` 3.8.17 has the same transitive
versions as 3.8.8, so only that one jar changes.
- dev/release/maven/README.md: note Netty 4.1.140. NOTICE and the
companion license texts are identical to the audited 4.1.118, so
`dependencies.txt` needs no change.
Not changed on purpose:
- `libs`: netty-buffer and netty-common 4.1.119 come from Lance via
Arrow, whose `arrow-memory-netty-buffer-patch` overrides internal
`io.netty.buffer` classes built against a specific Netty.
- Hive metastore libs already resolve Netty 4.1.138 through ZooKeeper.
- The `aws-bundle` and `azure-bundle` artifacts relocate their own Netty
(4.1.86 from the SDK v1 fat jar in `aws-java-sdk-bundle`, 4.1.110 from
the Azure SDK). They are not part of the server distribution and are
left for a separate change.
### Why are the changes needed?
Routine dependency maintenance: move these transitive dependencies to
Netty 4.1.140.Final and XNIO API 3.8.17.Final, the current patch
releases of the 4.1.x and 3.8.x lines.
Fix: #14725
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
- Compared the full `distribution/package` jar list before and after:
only the 11 Glue Netty jars (4.1.118 -> 4.1.140) and the 4 `xnio-api`
copies (3.8.8 -> 3.8.17) changed. The standalone
`gravitino-iceberg-rest-server` distribution gets the new `xnio-api` as
well.
- spotlessCheck, testMavenLegalFiles and generateBundledLegalFiles pass.
- Unit tests pass for catalog-glue, iceberg-common, iceberg-rest-server,
catalog-lakehouse-iceberg and server.
`TestHttpsServerAuthentication.testMutualTlsRejectsMissingClientCertificate`
in server-common fails the same way on an unmodified upstream/main
(local environment).
- Integration tests in deploy mode pass (`-PskipTests=false
-PskipDockerTests=false -PtestMode=deploy`): MotoGlueCatalogIT (35),
IcebergRESTMemoryCatalogIT, IcebergRESTJdbcCatalogIT,
IcebergRESTHiveCatalogIT, CatalogIcebergRestIT.
- Ran the AWS SDK Netty async client (`NettyNioAsyncHttpClient`) from
the Glue `libs` directory against a Moto server: create database, create
table, list tables and databases succeed, and the loaded Netty is
4.1.140.
- Not covered: TLS/HTTP2 through the Netty client, and a real AWS
endpoint.
---
catalogs/catalog-glue/build.gradle.kts | 16 ++++++++++++++++
dev/release/maven/README.md | 5 +++--
gradle/libs.versions.toml | 6 ++++++
iceberg/iceberg-common/build.gradle.kts | 4 ++++
server-common/build.gradle.kts | 4 ++++
5 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/catalogs/catalog-glue/build.gradle.kts
b/catalogs/catalog-glue/build.gradle.kts
index 6cb855ffa2..3b3f699615 100644
--- a/catalogs/catalog-glue/build.gradle.kts
+++ b/catalogs/catalog-glue/build.gradle.kts
@@ -24,7 +24,23 @@ plugins {
id("idea")
}
+// Keeps the Netty artifacts brought in by the AWS SDK on the single version
of the catalog. The BOM sits in a
+// dedicated configuration so that it only applies to this module and is not
exported to the
+// modules that depend on it.
+val nettyBom: Configuration by configurations.creating {
+ isCanBeConsumed = false
+ isCanBeResolved = false
+}
+listOf(
+ "compileClasspath",
+ "runtimeClasspath",
+ "testCompileClasspath",
+ "testRuntimeClasspath"
+).forEach {
+ configurations.named(it) { extendsFrom(nettyBom) }
+}
dependencies {
+ nettyBom(platform(libs.netty.bom))
compileOnly(project(":api"))
compileOnly(project(":common"))
compileOnly(project(":core"))
diff --git a/dev/release/maven/README.md b/dev/release/maven/README.md
index cd7dcba994..68599d2f01 100644
--- a/dev/release/maven/README.md
+++ b/dev/release/maven/README.md
@@ -96,9 +96,10 @@ inventory. A dependency's POM license declaration may omit
embedded third-party
Its native libraries include [Snappy
1.1.10](https://github.com/google/snappy/blob/1.1.10/COPYING)
and [Bitshuffle
0.3.4](https://github.com/kiyo-masui/bitshuffle/blob/0.3.4/LICENSE),
as recorded by the tagged Makefile and VERSION file.
-- Netty 4.1.109/110/118:
[NOTICE](https://github.com/netty/netty/blob/netty-4.1.118.Final/NOTICE.txt)
+- Netty 4.1.109/110/118/140:
[NOTICE](https://github.com/netty/netty/blob/netty-4.1.118.Final/NOTICE.txt)
and [companion license
texts](https://github.com/netty/netty/tree/netty-4.1.118.Final/license).
- The selected companions match across these versions. They cover embedded
+ The NOTICE and companion texts are identical in 4.1.118 and 4.1.140
(compared file by file),
+ and the selected companions match across these versions. They cover embedded
SLF4J/Harmony/JCTools in common, Webbit and Hoehrmann UTF-8 validation in
HTTP,
Bzip2/FastLZ/libdivsufsort/Protobuf in codec, HPACK implementations in
HTTP/2,
and Apple's dnsinfo header in the macOS native resolver.
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 1a22f7c0a1..548b132501 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -166,6 +166,10 @@ publish-plugin = '1.2.0'
rat-plugin = '0.8.0'
shadow-plugin = "8.1.1"
kerby = "2.0.3"
+# Transitive of kerb-admin; raised above the 3.8.8.Final that kerb-admin
brings in.
+xnio = "3.8.17.Final"
+# Netty is a transitive dependency of the AWS SDK (Glue catalog); the BOM
keeps all modules on one patch.
+netty = "4.1.140.Final"
node-plugin = "7.0.1"
commons-cli = "1.2"
commons-cli-new = "1.9.0"
@@ -224,6 +228,8 @@ jackson-jaxrs-json-provider = { group =
"com.fasterxml.jackson.jaxrs", name = "j
guava = { group = "com.google.guava", name = "guava", version.ref = "guava" }
gson = { group = "com.google.code.gson", name = "gson", version.ref = "gson" }
kerby-core = { group = "org.apache.kerby", name = "kerb-core", version.ref =
"kerby"}
+netty-bom = { group = "io.netty", name = "netty-bom", version.ref = "netty" }
+xnio-api = { group = "org.jboss.xnio", name = "xnio-api", version.ref = "xnio"
}
kerby-simplekdc = { group = "org.apache.kerby", name = "kerb-simplekdc",
version.ref = "kerby"}
lombok = { group = "org.projectlombok", name = "lombok", version.ref =
"lombok" }
junit-jupiter-api = { group = "org.junit.jupiter", name = "junit-jupiter-api",
version.ref = "junit" }
diff --git a/iceberg/iceberg-common/build.gradle.kts
b/iceberg/iceberg-common/build.gradle.kts
index 364e5cf29c..399d7dfc66 100644
--- a/iceberg/iceberg-common/build.gradle.kts
+++ b/iceberg/iceberg-common/build.gradle.kts
@@ -29,6 +29,10 @@ dependencies {
constraints {
implementation(libs.thrift)
}
+ // Raise the xnio-api pulled in by kerb-admin (3.8.8.Final) to the version
in the catalog.
+ constraints {
+ implementation(libs.xnio.api)
+ }
implementation(project(":api"))
implementation(project(":catalogs:catalog-common"))
diff --git a/server-common/build.gradle.kts b/server-common/build.gradle.kts
index aa48f71060..25876f3c0c 100644
--- a/server-common/build.gradle.kts
+++ b/server-common/build.gradle.kts
@@ -25,6 +25,10 @@ plugins {
}
dependencies {
+ // Raise the xnio-api pulled in by kerb-admin (3.8.8.Final) to the version
in the catalog.
+ constraints {
+ implementation(libs.xnio.api)
+ }
implementation(project(":api"))
implementation(project(":catalogs:catalog-common"))
implementation(project(":common")) {