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

[Java Client] Reset state before recycling OpSendMsg instance #10405

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Apr 27, 2021

Motivation

When reviewing the state management of some recycled instances, I came across an issue in Pulsar Java Client. OpSendMsg instances are recycled without clearing the state in a few fields. It is unclear what the impact of this inconsistency is.

Modifications

  • clear the retryCount, batchSizeByte and numMessagesInBatch fields in the recycle method.

@merlimat merlimat added this to the 2.8.0 milestone Apr 27, 2021
@merlimat merlimat merged commit 4f9e817 into apache:master Apr 27, 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.

None yet

2 participants