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 Proxy leaking oubound connections #11848

Merged
merged 1 commit into from
Aug 31, 2021

Conversation

merlimat
Copy link
Contributor

Motivation

After the refactoring done in #10028, there's a leak of outgoing TCP connection in the Pulsar proxy.

The problem is that the ProxyConnectionPool instances are now marked as created outside the PulsarClientImpl instance and therefore not closed when the client is closed.

Modification

Make sure we shutdown the ConnectionPool.
This is not easily testable in unit tests. Instead this class of issue should be tested for in system tests.

@merlimat merlimat added type/bug The PR fixed a bug or issue reported a bug doc-not-needed Your PR changes do not impact docs release/2.8.2 labels Aug 30, 2021
@merlimat merlimat added this to the 2.9.0 milestone Aug 30, 2021
@merlimat merlimat self-assigned this Aug 30, 2021
@merlimat merlimat merged commit af63e96 into apache:master Aug 31, 2021
@merlimat merlimat deleted the fix-proxy-connection-leak branch August 31, 2021 01:53
@merlimat merlimat added cherry-picked/branch-2.8 Archived: 2.8 is end of life release/2.8.1 and removed release/2.8.2 labels Aug 31, 2021
eolivelli pushed a commit to datastax/pulsar that referenced this pull request Sep 1, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-2.8 Archived: 2.8 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.1 release/2.9.0 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.

None yet

4 participants