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

[ISSUE #5759] Clean inactive non-persistent subscriptions #8166

Merged
merged 4 commits into from
Oct 5, 2020

Conversation

315157973
Copy link
Contributor

Fixes #5759

Motivation

unused subscriptions will never be cleared on non-persistent topics

Modifications

Add the lastActive attribute for non-persistent subscriptions. In the checkInactiveSubscriptions method of NonPersistentTopic, eligible subscriptions will be cleaned up

Verifying this change

org.apache.pulsar.client.api.NonDurableSubscriptionTest#testDeleteInactiveNonPersistentSubscription

@315157973 315157973 closed this Sep 30, 2020
@315157973 315157973 reopened this Sep 30, 2020
@315157973
Copy link
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@315157973
Copy link
Contributor Author

/pulsarbot run-failure-checks

@315157973
Copy link
Contributor Author

/pulsarbot run-failure-checks

@sijie sijie merged commit 6711b71 into apache:master Oct 5, 2020
wolfstudy pushed a commit that referenced this pull request Oct 30, 2020
Fixes #5759

### Motivation
unused subscriptions will never be cleared on non-persistent topics

### Modifications
Add the `lastActive` attribute for non-persistent subscriptions. In the `checkInactiveSubscriptions` method of `NonPersistentTopic`, eligible subscriptions will be cleaned up

### Verifying this change
org.apache.pulsar.client.api.NonDurableSubscriptionTest#testDeleteInactiveNonPersistentSubscription

(cherry picked from commit 6711b71)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
…he#8166)

Fixes apache#5759

### Motivation
unused subscriptions will never be cleared on non-persistent topics

### Modifications
Add the `lastActive` attribute for non-persistent subscriptions. In the `checkInactiveSubscriptions` method of `NonPersistentTopic`, eligible subscriptions will be cleaned up

### Verifying this change
org.apache.pulsar.client.api.NonDurableSubscriptionTest#testDeleteInactiveNonPersistentSubscription
@315157973 315157973 deleted the non-durable branch November 28, 2020 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inactive non-persistent subscriptions not purged
3 participants