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

Fix InvalidStateError log spam in some cancellation scenarios #338

Merged
merged 1 commit into from
Jun 5, 2022

Conversation

rohanpm
Copy link
Owner

@rohanpm rohanpm commented Jun 5, 2022

If a future has already been cancelled, we can't set the result or
exception. It is not an error if this happens to a future cancelled by
the caller, so don't generate ERROR logs in that case.

Fixes #337

If a future has already been cancelled, we can't set the result or
exception. It is not an error if this happens to a future cancelled by
the caller, so don't generate ERROR logs in that case.

Fixes #337
@rohanpm rohanpm force-pushed the reduce-cancel-logspam branch from 8a99a8d to 9776e50 Compare June 5, 2022 23:30
@codeclimate
Copy link

codeclimate bot commented Jun 5, 2022

Code Climate has analyzed commit 9776e50 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Style 1

The test coverage on the diff in this pull request is 82.6% (50% is the threshold).

This pull request will bring the total coverage in the repository to 99.5% (-0.2% change).

View more on Code Climate.

@rohanpm rohanpm merged commit a57137a into master Jun 5, 2022
@rohanpm rohanpm deleted the reduce-cancel-logspam branch June 5, 2022 23:38
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.

Log spam from retry/zip on cancel
1 participant