Skip to content
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

Handle all errors and runtime exceptions that may be thrown #150

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

jonahgraham
Copy link
Member

We can fail to regain our lock in other cases than just operation cancelled exception, so capture all of those cases to throw an FailedToReAcquireLockException.

Also, fix another finally block that assumes it has the lock.

Fixes #128


I am going to run this change a bunch of times on GHA to see what happens. I may need to deal with the new Exception hit in finally block log message as the tests fail on unexpected log messages.

@jonahgraham jonahgraham marked this pull request as draft November 8, 2022 19:50
@github-actions
Copy link

github-actions bot commented Nov 8, 2022

Test Results

   545 files     545 suites   16m 5s ⏱️
9 633 tests 9 611 ✔️ 22 💤 0
9 655 runs  9 633 ✔️ 22 💤 0

Results for commit fe43b99.

♻️ This comment has been updated with latest results.

We can fail to regain our lock in other cases than just
operation cancelled exception, so capture all of those
cases to throw an FailedToReAcquireLockException.

Also, fix another finally block that assumes it has the lock.

Fixes eclipse-cdt#128
@jonahgraham jonahgraham marked this pull request as ready for review November 9, 2022 12:09
@jonahgraham
Copy link
Member Author

Three successful runs - calling this done and I will monitor builds and PRs.

@jonahgraham jonahgraham merged commit cc67bd3 into eclipse-cdt:main Nov 9, 2022
@jonahgraham jonahgraham deleted the catch_all_exceptions branch November 9, 2022 12:10
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.

Need to hold a write lock to clear result caches assertion error
1 participant