forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[java client] Bugfix prevent dup consumers for same topic subscribe (a…
…pache#3746) Fixes apache#3743 issue. Return previous instance of a consumer in the subscription processed should only be considered with the scope of the same topic. Modifications: - Remove optimization of duplicated consumers for multi topics subscribe and pattern topics subscribe, this should be handled with a different approach. - Filter consumers for the same topic name. - Filter consumers which are connected to broker, this is not necessary to fix this issue but is a good thing to do. - Add test that verifies that same subscription will allow different consumers instance for different topics.
- Loading branch information
Showing
2 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters