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

fix: Allows remote pull queries to be cancelled #8252

Merged
merged 3 commits into from
Oct 15, 2021

Conversation

AlanConfluent
Copy link
Member

Description

Reverts #8248 and fixes the issue it was addressing. Namely, the issue is that closing the forwarded connection after it had already been completed resulted in errors. I'm not sure if this was the result of Vertx connection pooling somehow affecting other requests reusing the same connections, but this appeared to be the case.

The fix only closes the forwarded connection if the request is not complete by the time the connection to the proxy node is done.

This also has a fix for JSON parsing errors seen after we're given buffers that are not complete. This is exactly what RecordParser is for, so it's used.

Testing done

Unit tests and manual verification.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@AlanConfluent AlanConfluent requested a review from a team as a code owner October 13, 2021 00:44
Copy link
Contributor

@cprasad1 cprasad1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @AlanConfluent !

@AlanConfluent AlanConfluent merged commit 4efa445 into confluentinc:master Oct 15, 2021
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.

2 participants