Skip to content

Improve logic for removing subscriptions from DefaultSubscriptionRegistry [SPR-11930] #16548

@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-11930 and commented

When removing a session, rather than a destination pattern based search, we should search for occurrences of the session id in the destination cache. It is arguably a more fail-safe way to guarantee the session is completely removed from the cache and would probably be more efficient.

A similar improvement could be made for individual subscriptions. When removing a subscription, search for occurrences of the session id in the destination cache, and then check if the subscription id is present.

In other words complete ignore destinations and focus on removing session and subscription ids.


Affects: 4.0.5

Issue Links:

Referenced from: commits 5092414, ce20abd

1 votes, 2 watchers

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions