Skip to content

[Broker] Close namespace clients when PulsarService is closed#10196

Merged
eolivelli merged 1 commit into
apache:masterfrom
lhotari:lh-close-namespace-clients
Apr 15, 2021
Merged

[Broker] Close namespace clients when PulsarService is closed#10196
eolivelli merged 1 commit into
apache:masterfrom
lhotari:lh-close-namespace-clients

Conversation

@lhotari

@lhotari lhotari commented Apr 12, 2021

Copy link
Copy Markdown
Member

Motivation

The broker leaks some PulsarClient instances since the PulsarClient instances created in NamespaceService don't get closed.

Modifications

Add handling for closing PulsarClient instances created in NamespaceService. A similar logic for closing is used as there is currently for closing the PulsarClients of replication clients.

@merlimat merlimat added the type/bug The PR fixed a bug or issue reported a bug label Apr 12, 2021
@merlimat merlimat added this to the 2.8.0 milestone Apr 12, 2021

@315157973 315157973 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@lhotari
lhotari force-pushed the lh-close-namespace-clients branch from 2eeda6a to a555d12 Compare April 15, 2021 07:56
@eolivelli
eolivelli merged commit fad2bcd into apache:master Apr 15, 2021
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.

5 participants