Skip to content

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 force-pushed the fix-buffer-pooling branch from 4bb8a2b to 752d7bf Compare June 26, 2020 18:03
@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.

2 participants