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

[fix][transaction] Close the transaction buffer when deleting topics #14895

Merged
merged 1 commit into from
Mar 29, 2022

Conversation

gaoran10
Copy link
Contributor

@gaoran10 gaoran10 commented Mar 26, 2022

Fixes #14879

Motivation

Currently, the transaction buffer doesn't be closed when deleting topics, this will cause readers of the transaction buffer snapshot topic are leak.

Modifications

Close the transaction buffer when deleting topics.

Verifying this change

Add transaction buffer close test.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

Check the box below or label this PR directly (if you have committer privilege).

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

Currently, the transaction buffer don't be closed when deleting topic.

# Modification

Close the transaction buffer when deleting topic.
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Mar 26, 2022
@gaoran10 gaoran10 added area/transaction type/bug The PR fixed a bug or issue reported a bug labels Mar 26, 2022
@merlimat merlimat merged commit e8d52fd into apache:master Mar 29, 2022
@codelipenghui codelipenghui added this to the 2.11.0 milestone Mar 30, 2022
codelipenghui pushed a commit that referenced this pull request Mar 30, 2022
Currently, the transaction buffer don't be closed when deleting topic.

# Modification

Close the transaction buffer when deleting topic.

(cherry picked from commit e8d52fd)
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Mar 30, 2022
codelipenghui pushed a commit that referenced this pull request Apr 19, 2022
Currently, the transaction buffer don't be closed when deleting topic.

# Modification

Close the transaction buffer when deleting topic.

(cherry picked from commit e8d52fd)
Nicklee007 pushed a commit to Nicklee007/pulsar that referenced this pull request Apr 20, 2022
Currently, the transaction buffer don't be closed when deleting topic.

# Modification

Close the transaction buffer when deleting topic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/transaction cherry-picked/branch-2.9 Archived: 2.9 is end of life cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.9.3 release/2.10.1 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.

Producer leak for __transaction_buffer_snapshot topic
5 participants