Skip to content

Auto-port 4.1: Propagate exceptions from inner threads in buffer tests#16652

Merged
chrisvest merged 2 commits into
4.1from
auto-port-pr-16643-to-4.1
Apr 15, 2026
Merged

Auto-port 4.1: Propagate exceptions from inner threads in buffer tests#16652
chrisvest merged 2 commits into
4.1from
auto-port-pr-16643-to-4.1

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port of #16643 to 4.1
Cherry-picked commit: 4f3533a


Motivation:
If there are assertion failures inside threads started by a test, we need to ensure that the exception propagates out of the test, instead of just killing the started thread. This is likely the cause of some test timeouts we're seeing, and this change will help us uncover the root causes.

Modification:
Catch exceptions inside threads started by the tests, and make sure to progress relevant barriers. Propagate the exception to the test-running thread so we capture the cause.

Result:
Easier to debug tests.

Motivation:
If there are assertion failures inside threads started by a test, we
need to ensure that the exception propagates out of the test, instead of
just killing the started thread. This is likely the cause of some test
timeouts we're seeing, and this change will help us uncover the root
causes.

Modification:
Catch exceptions inside threads started by the tests, and make sure to
progress relevant barriers. Propagate the exception to the test-running
thread so we capture the cause.

Result:
Easier to debug tests.

(cherry picked from commit 4f3533a)
@chrisvest chrisvest force-pushed the auto-port-pr-16643-to-4.1 branch from 531bda5 to 70ed07a Compare April 15, 2026 19:12
@chrisvest chrisvest merged commit 2b912e5 into 4.1 Apr 15, 2026
19 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16643-to-4.1 branch April 15, 2026 21:56
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