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

Producer is stuck in DISCONNECTING state if inflight request is timed out during disconnect procedure #1208

Merged
merged 2 commits into from
Nov 22, 2021

Conversation

Igor-Kuzmin
Copy link
Contributor

Fix for #1167
Scenario:
enforceRequestTimeout=true
Producer has inflight request
producer.disconnect() is called. RequestQueue::waitForPendingRequests wait's for queue to be empty.
Inflight request is failed due to timeout
In this case producer is stuck in DISCONNECTING state if inflight request is timed out during disconnect procedure.

Fix
RequestQueue now tries to emit REQUEST_QUEUE_EMPTY in case of request timeout

@Igor-Kuzmin Igor-Kuzmin marked this pull request as draft October 13, 2021 15:14
@Igor-Kuzmin Igor-Kuzmin marked this pull request as ready for review October 13, 2021 15:14
@Nevon
Copy link
Collaborator

Nevon commented Nov 22, 2021

Thank you for the contribution. Looks great!

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.

3 participants