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 C++ batch acks tracker to evict message from sendList array #3618

Merged
merged 2 commits into from
Feb 19, 2019

Conversation

merlimat
Copy link
Contributor

Motivation

In c++ consumer, when receiving batched messages, the acknowledgment tracker is incorrectly trying remove the messageId from the last message in batch being acked from the sendList. In that list, the message ids being inserted are always the ones from the batch, not the individual messages.

The result of this is that the sendList keeps growing, using memory and making the linear search to skyrocket in cpu/time.

Note: this is just a quick fix to address the most pressing issue. A better fix will be to implement an equivalent of #1424.

@merlimat merlimat added type/bug The PR fixed a bug or issue reported a bug component/c++ labels Feb 17, 2019
@merlimat merlimat added this to the 2.3.1 milestone Feb 17, 2019
@merlimat merlimat self-assigned this Feb 17, 2019
@merlimat merlimat merged commit 57daf4e into apache:master Feb 19, 2019
merlimat added a commit that referenced this pull request Mar 29, 2019
)

* Fixed C++ batch acks tracker to evict message from sendList array

* Fixed formatting
@merlimat
Copy link
Contributor Author

merlimat commented Apr 1, 2019

Merged in 2.3.1 at
0d5ef2d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants