-
Notifications
You must be signed in to change notification settings - Fork 924
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
ARTEMIS-5184 STOMP noLocal is scoped to session not subscription #5414
Conversation
f596686
to
0e564bd
Compare
if (stompSubscription.isNoLocal()) { | ||
noLocalSubscriptionCount.decrementAndGet(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This disconnect method looks to be the only place a decrement is done...what if the subscription is explicitly unsubscribed and so this doesnt occur?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
assertEquals(1, noLocalCount); | ||
assertEquals(1, normalCount); | ||
|
||
conn.disconnect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably worth verifying removals behave are as expected also, and perhaps sending a message after and checking the expected behaviours, e.g around the header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I got all the relevant cases.
81906ac
to
5eea931
Compare
I manually rebased the changes and resolved the context-only conflict (from PR 5410 having been merged), then pushed. |
@gemmellr, thanks! |
This closes apache#5414 (cherry picked from commit 09b8f67)
This closes apache#5414 (cherry picked from commit 09b8f67)
No description provided.