Skip to content

Auto-port 4.1: Fix pooled arena accounting tests #16326

Merged
chrisvest merged 2 commits into4.1from
auto-port-pr-16321-to-4.1
Feb 21, 2026
Merged

Auto-port 4.1: Fix pooled arena accounting tests #16326
chrisvest merged 2 commits into4.1from
auto-port-pr-16321-to-4.1

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port of #16321 to 4.1
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 enabled auto-merge (squash) February 21, 2026 17:23
@chrisvest chrisvest added this to the 4.1.132.Final milestone Feb 21, 2026
@chrisvest chrisvest merged commit 34edc9b into 4.1 Feb 21, 2026
18 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16321-to-4.1 branch February 21, 2026 19:47
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