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.
[client] Cleanup consumer on multitopic subscribe failure (apache#9419)
Currently, when a multi-topic subscribe fails (via a set of topics or a regex) we can leave consumers connected, as the multitopic consumer doesn't close any of the topics. This means we rely on the client to call closeAsync, otherwise, the consumer is left in partially open state. This fix changes that, and ensures we call close in the case of an exception Co-authored-by: Sijie Guo <sijie@apache.org>
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 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
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