Skip to content

[CASSANDRA-21175][trunk] Upgrade Netty to 4.2.17.Final and netty-tcnative to 2.0.81.Final - #5076

Open
netudima wants to merge 1 commit into
apache:trunkfrom
netudima:CASSANDRA-21175-trunk
Open

[CASSANDRA-21175][trunk] Upgrade Netty to 4.2.17.Final and netty-tcnative to 2.0.81.Final#5076
netudima wants to merge 1 commit into
apache:trunkfrom
netudima:CASSANDRA-21175-trunk

Conversation

@netudima

Copy link
Copy Markdown
Contributor

Netty 4.2 replaced the allocation hook of UnpooledDirectByteBuf: capacity(int) now calls allocateDirectBuffer(int), returning a CleanableDirectBuffer, and the deprecated allocateDirect(int)/freeDirect(ByteBuffer) are no longer consulted on that path. BufferPoolAllocator.Wrapped is updated to override the new hook, otherwise a resized buffer is allocated outside of Cassandra's BufferPool and fails to be returned to it on release.

Excludes the modules netty-all newly aggregates in 4.2 that Cassandra does not use: http3, quic, marshalling, protobuf and io_uring (it is not in use so far).

patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-21175

Netty 4.2 replaced the allocation hook of UnpooledDirectByteBuf: capacity(int)
now calls allocateDirectBuffer(int), returning a CleanableDirectBuffer, and the
deprecated allocateDirect(int)/freeDirect(ByteBuffer) are no longer consulted on
that path. BufferPoolAllocator.Wrapped is updated to override the new hook,
otherwise a resized buffer is allocated outside of Cassandra's BufferPool and
fails to be returned to it on release.

Excludes the modules netty-all newly aggregates in 4.2 that Cassandra does not
use: http3, quic, marshalling, protobuf and io_uring (it is not in use so far).

patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-21175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant