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

Fix using closed connection in consumer #785

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

hrsakai
Copy link
Contributor

@hrsakai hrsakai commented Jun 7, 2022

Motivation

Related to #761

This PR fixed the issue using closed connection at consumer side.

If same issue as #761 happens at consumer side, consumer will report the following errors and can't consume any messages.

ERRO[0180] [Connection was closed when request flow cmd]  consumerID=1 name=wzrtq subscription=sub1 topic="persistent://public/default/topic-go-1"
ERRO[0180] [unable to send initial permits to broker]    consumerID=1 error="connection closed" name=wzrtq subscription=sub1 topic="persistent://public/default/topic-go-1"

Modifications

  • return an error when unable to add consumer handler.

@merlimat merlimat merged commit 1e2422b into apache:master Jun 23, 2022
@hrsakai hrsakai deleted the fix-consumer branch June 23, 2022 22:41
billowqiu added a commit to billowqiu/pulsar-client-go that referenced this pull request Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants