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

Fixed pooled buffer lifecycle #300

Merged
merged 1 commit into from
Jun 26, 2020
Merged

Conversation

merlimat
Copy link
Contributor

Motivation

The buffer pooling introduced in #292 has a serious bug in that the buffer gets released back to the pool after it's written on the connection. The problem is that, if there's a failure, a message can be written again after the reconnection, in which case we're sending garbage data.

We need to tie the buffer lifecycle of the send request instead and, in that optic, it doesn't make to have the pool on the connection, rather it should be at the partition producer level.

@merlimat merlimat added this to the 0.2.0 milestone Jun 26, 2020
@merlimat merlimat self-assigned this Jun 26, 2020
@merlimat merlimat merged commit ba79ab0 into apache:master Jun 26, 2020
@merlimat merlimat deleted the fix-buffer-pooling branch June 26, 2020 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants