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] Number of subscriptions in /serverz endpoint is incorrect #820

Merged
merged 1 commit into from May 6, 2019

Conversation

kozlovic
Copy link
Member

@kozlovic kozlovic commented May 3, 2019

The number of subscriptions was incorrectly increasing when a durable
subscription was resumed.

The proper behavior is as follows:

  • a durable is started for the first time, count increases
  • this durable is closed (but not unsubscribed), count unchanged
  • durable is unsubscribed, count decreases
  • a durable queue group is created, count increases
  • a member added, count increases
  • a member leaves, count decreases
  • the last member leaves (but group remains because durable), count
    is unchanged.
  • group is unsubscribed, count decreases.

for non durable subscriptions (queue or not), when a subscription
is created, count increases, when closed or unsubscribed, count
decreases.

Resolves #819

Signed-off-by: Ivan Kozlovic ivan@synadia.com

The number of subscriptions was incorrectly increasing when a durable
subscription was resumed.

The proper behavior is as follows:
- a durable is started for the first time, count increases
- this durable is closed (but not unsubscribed), count unchanged
- durable is unsubscribed, count decreases
- a durable queue group is created, count increases
- a member added, count increases
- a member leaves, count decreases
- the last member leaves (but group remains because durable), count
  is unchanged.
- group is unsubscribed, count decreases.

for non durable subscriptions (queue or not), when a subscription
is created, count increases, when closed or unsubscribed, count
decreases.

Resolves #819

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 92.129% when pulling 7b9051a on fix_819 into 57c6c84 on master.

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@kozlovic kozlovic merged commit 468a3bd into master May 6, 2019
@kozlovic kozlovic deleted the fix_819 branch May 6, 2019 01:39
kozlovic added a commit that referenced this pull request May 6, 2019
Related to PR #820

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
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.

Incorrect number of subscriptions in streaming/serverz when durables are resumed
3 participants