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

ARTEMIS-5184 STOMP noLocal is scoped to session not subscription #5414

Closed
wants to merge 1 commit into from

Conversation

jbertram
Copy link
Contributor

No description provided.

Comment on lines +235 to +237
if (stompSubscription.isNoLocal()) {
noLocalSubscriptionCount.decrementAndGet();
}
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Comment on lines 1518 to 1564
assertEquals(1, noLocalCount);
assertEquals(1, normalCount);

conn.disconnect();
Copy link
Member

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.

Copy link
Contributor Author

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.

@jbertram jbertram force-pushed the ARTEMIS-5184 branch 2 times, most recently from 81906ac to 5eea931 Compare January 7, 2025 17:40
@gemmellr
Copy link
Member

gemmellr commented Jan 9, 2025

I manually rebased the changes and resolved the context-only conflict (from PR 5410 having been merged), then pushed.

@jbertram
Copy link
Contributor Author

jbertram commented Jan 9, 2025

@gemmellr, thanks!

clebertsuconic pushed a commit to clebertsuconic/activemq-artemis that referenced this pull request Jan 10, 2025
clebertsuconic pushed a commit to clebertsuconic/activemq-artemis that referenced this pull request Jan 10, 2025
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.

2 participants