Skip to content

Auto-port 4.1: Stabilize AbstractByteBufTest.testBytesInArrayMultipleThreads#16373

Merged
normanmaurer merged 2 commits into
4.1from
auto-port-pr-16370-to-4.1
Feb 26, 2026
Merged

Auto-port 4.1: Stabilize AbstractByteBufTest.testBytesInArrayMultipleThreads#16373
normanmaurer merged 2 commits into
4.1from
auto-port-pr-16370-to-4.1

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port of #16370 to 4.1
Cherry-picked commit: fa59bfb


Motivation:
In busy CI environments these tests could time out (the timeout was 5 seconds) and cause build breakages.

Modification:

  • Add a barrier for the start of the worker threads.
  • Make sure every thread do the same number of iterations; the total number of iterations remain the same, but now threads work on these without coordination.
  • Capture worker thread exceptions.
  • Increase the timeout to 30 seconds.

Result:
Tests should be more stable now.

Motivation:
In busy CI environments these tests could time out (the timeout was 5
seconds) and cause build breakages.

Modification:

- Add a barrier for the start of the worker threads.
- Make sure every thread do the same number of iterations; the total
number of iterations remain the same, but now threads work on these
without coordination.
- Capture worker thread exceptions.
- Increase the timeout to 30 seconds.

Result:
Tests should be more stable now.

(cherry picked from commit fa59bfb)
Comment thread buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java Outdated
Comment thread buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java Outdated
@normanmaurer normanmaurer merged commit b1e08c5 into 4.1 Feb 26, 2026
33 of 34 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16370-to-4.1 branch February 26, 2026 15:14
@normanmaurer normanmaurer added this to the 4.1.132.Final milestone Feb 26, 2026
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.

3 participants