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

replace refaster executor submit->execute rule with an error-prone rule #938

Closed
carterkozak opened this issue Oct 3, 2019 · 0 comments
Closed
Assignees

Comments

@carterkozak
Copy link
Contributor

What happened?

The refaster rule uncovered a few places where we were not logging failures, one of which hid a component that has been completely broken for months.
We should enforce this pre-merge instead of post-fixing with refaster

What did you want to happen?

New error level error prone rule to disallow ExecutorService.submit where the returned future is ignored in favor ExecutorService.execute.

For context, exceptions thrown from tasks supplied to ExecutorService.submit are not logged to the uncaught thread handler because it's assumed that the result will be read from the future. If the returned future is ignored, execute is strictly better.

carterkozak added a commit that referenced this issue Oct 6, 2019
Previously refaster runs would eventually attempt to fix this bug.
Now it blocks compilation pre-merge to ensure bugs cannot be
introduced.
@carterkozak carterkozak self-assigned this Oct 6, 2019
carterkozak added a commit that referenced this issue Oct 6, 2019
Previously refaster runs would eventually attempt to fix this bug.
Now it blocks compilation pre-merge to ensure bugs cannot be
introduced.
@bulldozer-bot bulldozer-bot bot closed this as completed in a7dc333 Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant