-
Notifications
You must be signed in to change notification settings - Fork 82
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
Move blocking send operation to executor thread #251
base: master
Are you sure you want to change the base?
Move blocking send operation to executor thread #251
Conversation
The |
@Ladicek Right, you know I was wondering the same.. :) The Vertx developers then clarified its use in their documentation:
https://vertx.io/docs/apidocs/io/vertx/rxjava/core/Context.html |
I believe the thing that matters here is : is the blocking operation for such time expected or not ? |
@vietj yes,
This is particularly evident when the Kafka cluster is down or unavailable |
so I think we should use this specific executor, however it should not be nested inside executeBlocking and use directly instead |
@vietj Should I try updating? |
yes you should
…On Wed, Jul 26, 2023 at 5:49 PM Arooba Shahoor ***@***.***> wrote:
@vietj <https://github.com/vietj> Should I try updating?
—
Reply to this email directly, view it on GitHub
<#251 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABXDCQTCHX7IG4AXAPKOPDXSE4AXANCNFSM6AAAAAA2XZAVPI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Apologies for the delayed response.. If I replace or should we return promise like this:
|
it is not clear what is happening since we are already in an execute blocking block, what is the actual issue we are trying to fix ? does it mean we should avoid execute blocking with kafka ? |
Hi! :)
Thank you for this project..
This PR fixes a blocking call in the
send
method ofKafkaWriteStreamImpl
class, which was detected with the help of BlockHound:We re-ran the test cases and also evaluated performance (in terms of sleep time latency of the SendThread) before and after the fix:
Before
After