Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#14725] chore(deps): Upgrade Netty to 4.1.140.Final and XNIO API to 3.8.17.Final (#14726)

geyanggang54387507745e
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")) {