Skip to content

Auto-port 5.0: Fix pooled arena accounting tests #16325

Merged
chrisvest merged 1 commit into5.0from
auto-port-pr-16321-to-5.0
Feb 21, 2026
Merged

Auto-port 5.0: Fix pooled arena accounting tests #16325
chrisvest merged 1 commit into5.0from
auto-port-pr-16321-to-5.0

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port of #16321 to 5.0
Cherry-picked commit: fdb2a7b


Motivation:
These tests were often running into timeouts.

Modification:

Capture the stack trace of the spawned thread, and include it in the tests own InterruptedException. Also capture any exceptions thrown in the thread, by wrapping the work in a FutureTask.
This makes diagnosing these issues easier.

Extend the timeouts to 10 seconds.

Give the pool a direct arena since it allocates direct buffers.
Without a direct arena, it would allocate unpooled buffers, which bear the cost of deallocation directly in ByteBuf.release.

Result:
More stable build.

Motivation:
These tests were often running into timeouts.

Modification:

Capture the stack trace of the spawned thread, and include it in the
tests own InterruptedException. Also capture any exceptions thrown in
the thread, by wrapping the work in a FutureTask.
This makes diagnosing these issues easier.

Extend the timeouts to 10 seconds.

Give the pool a direct arena since it allocates direct buffers.
Without a direct arena, it would allocate unpooled buffers, which bear
the cost of deallocation directly in ByteBuf.release.

Result:
More stable build.

(cherry picked from commit fdb2a7b)
@chrisvest chrisvest added this to the 5.0.0.Final milestone Feb 21, 2026
@chrisvest chrisvest merged commit 04fe661 into 5.0 Feb 21, 2026
11 of 13 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16321-to-5.0 branch February 21, 2026 17:18
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.

2 participants