Skip to content

Commit 94f937f

Browse files
authored
AVRO-4153: add netty-codec (#3405)
* AVRO-4153: Add dependency to netty-codec * AVRO-4153: Upgrade netty to 4.2.2.Final
1 parent 8d1b139 commit 94f937f

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

lang/java/ipc-netty/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@
121121
<groupId>io.netty</groupId>
122122
<artifactId>netty-handler</artifactId>
123123
</dependency>
124+
<dependency>
125+
<groupId>io.netty</groupId>
126+
<artifactId>netty-codec</artifactId>
127+
</dependency>
124128

125129

126130
</dependencies>

lang/java/ipc-netty/src/test/java/org/apache/avro/ipc/netty/TestNettyServerWithCompression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class TestNettyServerWithCompression extends TestNettyServer {
3131
public static void initializeConnections() throws Exception {
3232
initializeConnections(ch -> {
3333
ch.pipeline().addFirst("deflater", new JdkZlibEncoder(6));
34-
ch.pipeline().addFirst("inflater", new JdkZlibDecoder());
34+
ch.pipeline().addFirst("inflater", new JdkZlibDecoder(0));
3535
});
3636
}
3737

lang/java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<junit5.version>5.13.1</junit5.version>
5252
<maven-core.version>3.9.6</maven-core.version>
5353
<mockito.version>5.18.0</mockito.version>
54-
<netty.version>4.2.0.Final</netty.version>
54+
<netty.version>4.2.2.Final</netty.version>
5555
<protobuf.version>4.31.1</protobuf.version>
5656
<reload4j.version>1.2.26</reload4j.version>
5757
<servlet-api.version>4.0.1</servlet-api.version>

0 commit comments

Comments
 (0)