This is an automated email from the ASF dual-hosted git repository.
HTHou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 24d22d21ade Trim unused Netty dependencies from the distribution
(#19430)
24d22d21ade is described below
commit 24d22d21ade21e2c9c2e2f04a742e93d7e51df54
Author: Haonan <[email protected]>
AuthorDate: Fri Nov 27 19:45:14 2026 +0800
Trim unused Netty dependencies from the distribution (#19430)
---
LICENSE-binary | 7 -------
dependencies.json | 8 --------
external-service-impl/mqtt/pom.xml | 21 +++++++++++++++++++++
iotdb-core/metrics/interface/pom.xml | 29 +++++++++++++++++++++++++++++
4 files changed, 50 insertions(+), 15 deletions(-)
diff --git a/LICENSE-binary b/LICENSE-binary
index 6a76bbb5a81..824dccdcbdc 100644
--- a/LICENSE-binary
+++ b/LICENSE-binary
@@ -238,23 +238,16 @@ io.micrometer:micrometer-core:1.11.4
io.micrometer:micrometer-observation:1.11.4
io.netty:netty-buffer:4.1.137.Final
io.netty:netty-codec:4.1.137.Final
-io.netty:netty-codec-dns:4.1.137.Final
io.netty:netty-codec-http:4.1.137.Final
io.netty:netty-codec-http2:4.1.137.Final
io.netty:netty-codec-mqtt:4.1.137.Final
-io.netty:netty-codec-socks:4.1.137.Final
io.netty:netty-common:4.1.137.Final
io.netty:netty-handler:4.1.137.Final
-io.netty:netty-handler-proxy:4.1.137.Final
io.netty:netty-resolver:4.1.137.Final
io.netty:netty-resolver-dns:4.1.137.Final
-io.netty:netty-resolver-dns-classes-macos:4.1.137.Final
-io.netty:netty-resolver-dns-native-macos:4.1.137.Final
io.netty:netty-transport:4.1.137.Final
io.netty:netty-transport-classes-epoll:4.1.137.Final
-io.netty:netty-transport-classes-kqueue:4.1.137.Final
io.netty:netty-transport-native-epoll:4.1.137.Final
-io.netty:netty-transport-native-kqueue:4.1.137.Final
io.netty:netty-transport-native-unix-common:4.1.137.Final
io.projectreactor:reactor-core:3.7.19
io.projectreactor.netty:reactor-netty-core:1.2.18
diff --git a/dependencies.json b/dependencies.json
index 8a606918f03..3a9b86c160c 100644
--- a/dependencies.json
+++ b/dependencies.json
@@ -31,25 +31,17 @@
"io.micrometer:micrometer-observation",
"io.netty:netty-buffer",
"io.netty:netty-codec",
- "io.netty:netty-codec-dns",
"io.netty:netty-codec-http",
"io.netty:netty-codec-http2",
"io.netty:netty-codec-mqtt",
- "io.netty:netty-codec-socks",
"io.netty:netty-common",
"io.netty:netty-handler",
- "io.netty:netty-handler-proxy",
"io.netty:netty-resolver",
"io.netty:netty-resolver-dns",
- "io.netty:netty-resolver-dns-classes-macos",
- "io.netty:netty-resolver-dns-native-macos",
"io.netty:netty-transport",
"io.netty:netty-transport-classes-epoll",
- "io.netty:netty-transport-classes-kqueue",
"io.netty:netty-transport-native-epoll",
"io.netty:netty-transport-native-epoll",
- "io.netty:netty-transport-native-kqueue",
- "io.netty:netty-transport-native-kqueue",
"io.netty:netty-transport-native-unix-common",
"io.projectreactor:reactor-core",
"io.projectreactor.netty:reactor-netty-core",
diff --git a/external-service-impl/mqtt/pom.xml
b/external-service-impl/mqtt/pom.xml
index 35330f74c22..b8491b60fe9 100644
--- a/external-service-impl/mqtt/pom.xml
+++ b/external-service-impl/mqtt/pom.xml
@@ -75,6 +75,10 @@
<groupId>io.netty</groupId>
<artifactId>netty-codec-http</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-transport-native-kqueue</artifactId>
+ </exclusion>
<!-- IoTDB configures Moquette with a plain TCP listener. -->
<exclusion>
<groupId>io.netty</groupId>
@@ -93,6 +97,18 @@
<artifactId>netty-buffer</artifactId>
<scope>provided</scope>
</dependency>
+ <!-- The server supplies the epoll classes and the Linux x86_64
library. -->
+ <dependency>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-transport-classes-epoll</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-transport-native-epoll</artifactId>
+ <classifier>linux-x86_64</classifier>
+ <scope>provided</scope>
+ </dependency>
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>iotdb-thrift-commons</artifactId>
@@ -170,6 +186,11 @@
<ignoredDependency>io.netty:netty-codec-mqtt</ignoredDependency>
<ignoredDependency>org.apache.tsfile:common</ignoredDependency>
</ignoredDependencies>
+ <usedDependencies>
+ <!-- The Netty transport loads these classes and
native code at runtime. -->
+
<usedDependency>io.netty:netty-transport-classes-epoll</usedDependency>
+
<usedDependency>io.netty:netty-transport-native-epoll</usedDependency>
+ </usedDependencies>
</configuration>
</plugin>
<plugin>
diff --git a/iotdb-core/metrics/interface/pom.xml
b/iotdb-core/metrics/interface/pom.xml
index 67bcb7aeb46..6de1cfbbeed 100644
--- a/iotdb-core/metrics/interface/pom.xml
+++ b/iotdb-core/metrics/interface/pom.xml
@@ -59,13 +59,42 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
+ <!-- The Prometheus reporter uses Reactor Netty as an HTTP server. -->
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty-http</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-codec-dns</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-handler-proxy</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-resolver-dns-native-macos</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty-core</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-codec-dns</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-handler-proxy</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-resolver-dns-native-macos</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>