Skip to content

Propagate exceptions from inner threads in buffer tests#16643

Merged
chrisvest merged 1 commit into
netty:4.2from
chrisvest:4.2-prop-exceptions
Apr 15, 2026
Merged

Propagate exceptions from inner threads in buffer tests#16643
chrisvest merged 1 commit into
netty:4.2from
chrisvest:4.2-prop-exceptions

Conversation

@chrisvest
Copy link
Copy Markdown
Member

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.
@chrisvest chrisvest added this to the 4.2.13.Final milestone Apr 13, 2026
@chrisvest chrisvest requested a review from normanmaurer April 13, 2026 23:34
@chrisvest chrisvest added needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. labels Apr 13, 2026
@chrisvest chrisvest merged commit 4f3533a into netty:4.2 Apr 15, 2026
22 of 23 checks passed
@chrisvest chrisvest deleted the 4.2-prop-exceptions branch April 15, 2026 18:26
netty-project-bot pushed a commit that referenced this pull request Apr 15, 2026
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)
netty-project-bot pushed a commit that referenced this pull request Apr 15, 2026
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)
@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port PR for 4.1: #16652

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #16653

@github-actions github-actions Bot removed needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. labels Apr 15, 2026
chrisvest added a commit that referenced this pull request Apr 15, 2026
#16653)

Auto-port of #16643 to 5.0
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.

Co-authored-by: Chris Vest <[email protected]>
chrisvest added a commit that referenced this pull request Apr 15, 2026
#16652)

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.

---------

Co-authored-by: Chris Vest <[email protected]>
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