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 the possible memory leak of TopicPolicies #10466

Merged
merged 3 commits into from
May 5, 2021

Conversation

315157973
Copy link
Contributor

@315157973 315157973 commented May 2, 2021

Motivation

Topic has been deleted, and the corresponding cache and Listener should also be deleted.
Now only the value of the listeners is deleted, the key is not deleted, and the cache is not deleted as well.

Modifications

add clean API to clean cache and listeners

Verifying this change

@sijie sijie added this to the 2.8.0 milestone May 4, 2021
Copy link
Member

@sijie sijie left a comment

Choose a reason for hiding this comment

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

Overall looks good to me.

@sijie sijie merged commit c3a20a1 into apache:master May 5, 2021
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request May 11, 2021
### Motivation
Topic has been deleted, and the corresponding cache and Listener should also be deleted.
Now only the value of the listeners is deleted, the key is not deleted, and the cache is not deleted  as well.

### Modifications
add clean API to clean cache and listeners

### Verifying this change
codelipenghui pushed a commit that referenced this pull request Nov 25, 2021
### Motivation

`TopicPoliciesService#clean` was introduced to solve listener leaking problem in #10466.
And this is already addressed in #12904 using `unregisterListener`.
So this method is no use any more, and I don't see any situations that we may use this again.

### Modifications

Delete TopicPoliciesService#clean
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request Nov 29, 2021
…#12913)

### Motivation

`TopicPoliciesService#clean` was introduced to solve listener leaking problem in apache#10466.
And this is already addressed in apache#12904 using `unregisterListener`.
So this method is no use any more, and I don't see any situations that we may use this again.

### Modifications

Delete TopicPoliciesService#clean
fxbing pushed a commit to fxbing/pulsar that referenced this pull request Dec 19, 2021
…#12913)

### Motivation

`TopicPoliciesService#clean` was introduced to solve listener leaking problem in apache#10466.
And this is already addressed in apache#12904 using `unregisterListener`.
So this method is no use any more, and I don't see any situations that we may use this again.

### Modifications

Delete TopicPoliciesService#clean
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