Skip to content

Supress internal ThreadAbortedError in user threads #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 24, 2025

Conversation

eupp
Copy link
Collaborator

@eupp eupp commented Feb 13, 2025

No description provided.

eupp added 8 commits February 11, 2025 20:54
…on scenario thread

* wrap actors' loop in try-finally to achieve this

Signed-off-by: Evgeniy Moiseenko <[email protected]>
* move parent's `visitCode` at the beginning of the method

Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
…onThreadException`

Signed-off-by: Evgeniy Moiseenko <[email protected]>
@eupp eupp requested a review from ndkoval February 13, 2025 13:51
Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
public static boolean onThreadException(Throwable exception) {
Thread thread = Thread.currentThread();
// TestThread is handled separately
if (thread instanceof TestThread) return false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we handle this case separately?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are already several places where we handle TestThread differently.
I've created an issue to fix this: #540.

@eupp eupp requested a review from ndkoval February 20, 2025 17:54
@ndkoval ndkoval merged commit 06451df into develop Feb 24, 2025
20 checks passed
@ndkoval ndkoval deleted the eupp/fix-thread-abort-errors branch February 24, 2025 19:48
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