[java client] Bugfix prevent dup consumers for same topic subscribe (#3746)
Fixes #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.
Showing
想要评论请 注册 或 登录