This is an automated email from the ASF dual-hosted git repository.

opwvhk pushed a commit to branch branch-1.12
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 040c848357a66fcc4c02461e3246b506e8384c11
Author: Oscar Westra van Holthe - Kind <opw...@users.noreply.github.com>
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
    
    (cherry picked from commit 94f937faf161994868df79f43647960c51c8ff39)
---
 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 7f04359ffa..c080719763 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 40ba5ac065..2069269526 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>

Reply via email to