This is an automated email from the ASF dual-hosted git repository.
opwvhk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/main by this push:
new 94f937faf1 AVRO-4153: add netty-codec (#3405)
94f937faf1 is described below
commit 94f937faf161994868df79f43647960c51c8ff39
Author: Oscar Westra van Holthe - Kind <[email protected]>
AuthorDate: Wed Jun 11 13:44:16 2025 +0200
AVRO-4153: add netty-codec (#3405)
* AVRO-4153: Add dependency to netty-codec
* AVRO-4153: Upgrade netty to 4.2.2.Final
---
lang/java/ipc-netty/pom.xml | 4 ++++
.../org/apache/avro/ipc/netty/TestNettyServerWithCompression.java | 2 +-
lang/java/pom.xml | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/lang/java/ipc-netty/pom.xml b/lang/java/ipc-netty/pom.xml
index be5ab63d85..420a96116b 100644
--- a/lang/java/ipc-netty/pom.xml
+++ b/lang/java/ipc-netty/pom.xml
@@ -121,6 +121,10 @@
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
</dependency>
+ <dependency>
+ <groupId>io.netty</groupId>
+ <artifactId>netty-codec</artifactId>
+ </dependency>
</dependencies>
diff --git
a/lang/java/ipc-netty/src/test/java/org/apache/avro/ipc/netty/TestNettyServerWithCompression.java
b/lang/java/ipc-netty/src/test/java/org/apache/avro/ipc/netty/TestNettyServerWithCompression.java
index 3b6a2b41ef..5bbfeb8c6b 100644
---
a/lang/java/ipc-netty/src/test/java/org/apache/avro/ipc/netty/TestNettyServerWithCompression.java
+++
b/lang/java/ipc-netty/src/test/java/org/apache/avro/ipc/netty/TestNettyServerWithCompression.java
@@ -31,7 +31,7 @@ public class TestNettyServerWithCompression extends
TestNettyServer {
public static void initializeConnections() throws Exception {
initializeConnections(ch -> {
ch.pipeline().addFirst("deflater", new JdkZlibEncoder(6));
- ch.pipeline().addFirst("inflater", new JdkZlibDecoder());
+ ch.pipeline().addFirst("inflater", new JdkZlibDecoder(0));
});
}
diff --git a/lang/java/pom.xml b/lang/java/pom.xml
index dabaef519d..d5adc43d84 100644
--- a/lang/java/pom.xml
+++ b/lang/java/pom.xml
@@ -51,7 +51,7 @@
<junit5.version>5.13.1</junit5.version>
<maven-core.version>3.9.6</maven-core.version>
<mockito.version>5.18.0</mockito.version>
- <netty.version>4.2.0.Final</netty.version>
+ <netty.version>4.2.2.Final</netty.version>
<protobuf.version>4.31.1</protobuf.version>
<reload4j.version>1.2.26</reload4j.version>
<servlet-api.version>4.0.1</servlet-api.version>