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

[transactions] Fix minor leak of FlushContext #17399

Merged
merged 3 commits into from
Sep 15, 2022

Conversation

eolivelli
Copy link
Contributor

Motivation

There is a chance that FlushContext is not recycled in case of failure and "flushContext.asyncAddArgsList" is empty or null.

Modifications

Fix the code

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

@eolivelli eolivelli added this to the 2.12.0 milestone Sep 1, 2022
@eolivelli eolivelli self-assigned this Sep 1, 2022
@github-actions
Copy link

github-actions bot commented Sep 1, 2022

@eolivelli Please provide a correct documentation label for your PR.
Instructions see Pulsar Documentation Label Guide.

@eolivelli eolivelli added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels Sep 2, 2022
Copy link
Contributor

@poorbarcode poorbarcode left a comment

Choose a reason for hiding this comment

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

Good catch!

@eolivelli eolivelli force-pushed the fix/flushcontext-leak branch from 8339a9e to 0c4dbba Compare September 13, 2022 14:31
@eolivelli eolivelli merged commit 4cf8b80 into apache:master Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/transaction doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants