-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 timeout for rd_kafka_query_watermark_offsets #4460
Conversation
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 fix! Just some test changes to ensure it's run when the test run has the local flag
Co-authored-by: Emanuele Sabellico <[email protected]>
Addressed comments, thanks for review @emasab |
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 @milindl !
rd_kafka_query_watermark_offsets
hangs forever if say, the broker is down, and exceeds the timeout in case the RTT > timeout, see the linked issue.This PR adds a failing test, and then fixes the issue.
This also changes the fact the return value of
rd_kafka_q_serve
was being compared to RD_KAFKA_OP_RES_YIELD, which doesn't make sense to me, since it returns the count of served ops, and RD_KAFKA_OP_RES_YIELD is a positive constant.Fixes #2588.