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
isAsync takes precedence over OperationHostileThread #26227
Conversation
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
Internal PR hazelcast/hazelcast-mono#484 |
@vbekiaris can you please take a look? |
Thanks for submitting this contribution. I don't see any obvious downsides to this change, but the interface As I'm not familiar with |
The purpose of OperationHostileThread is to prevent any operation running on that thread. For partition-specific operations, it is obvious that you need to run on a partition-thread, but there are also operations that do not require a partition thread to run on. We need to make sure that such operations don't get executed on such an OperationHostileThread (e.g. an IO-thread). |
The change is fine since with 'async' the actual operation execution will always be offloaded to the right thread and will never be executed on an OperationHostileThread. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @lukasherman, we appreciate it!
any chance for backporting the fix to 5.3 branch? |
Please sign the CLA so we can proceed @lukasherman. |
I have signed it several times already, please check. |
This pull request has been closed because it was already merged as https://github.com/hazelcast/hazelcast-mono/pull/484 |
This will be backported to our |
Import of #26227 **Original PR description:** Fixes #24712 OperationExecutor allows async invocation of OperationHostileThread. Imported changes: - ad43e41 isAsync takes precedence over OperationHostileThread Closes #26227 Co-authored-by: Lukáš Herman <lukas.herman@cgi.com> GitOrigin-RevId: ed32fc9cca084cfc14ad6b846931fbd3798b6820
Forwardport of https://github.com/hazelcast/hazelcast-mono/pull/484 Import of #26227 **Original PR description:** Fixes #24712 OperationExecutor allows async invocation of OperationHostileThread. Imported changes: - ad43e41 isAsync takes precedence over OperationHostileThread Co-authored-by: Lukáš Herman <lukas.herman@cgi.com> GitOrigin-RevId: c80a5d09f3dd556d1fa24dead95d17f5322eb36f
Fixes #24712
OperationExecutor allows async invocation of OperationHostileThread.