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

AbstractCompletableListenableFuture.cancel listener execution thread fix #280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jentfoo
Copy link
Member

@jentfoo jentfoo commented Aug 16, 2022

This commit resolves #274
Issue #274 describes where AbstractCompletableListenableFuture.cancel may result in listeners with SingleThreadIfExecutorMatchOrDone or SingleThreadIfExecutorMatch optimization being executed on the thread canceling the future rather than the expected pool.
As commented this minimal overhead is unfortunate considering how corner case this condition is. Which makes me partially reconsider the optimization capability entirely.

This commit resolves threadly#274
Issue threadly#274 describes where AbstractCompletableListenableFuture.cancel may result in listeners with `SingleThreadIfExecutorMatchOrDone` or `SingleThreadIfExecutorMatch` optimization being executed on the thread canceling the future rather than the expected pool.
As commented this minimal overhead is unfortunate considering how corner case this condition is.  Which makes me partially reconsider the optimization capability entirely.
@jentfoo
Copy link
Member Author

jentfoo commented Aug 16, 2022

@lwahlmeier Any thoughts on this fix?

@jentfoo jentfoo added this to the 7.1 Release milestone Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant