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

Handle receiveAsync() failures in MultiTopicsConsumer #11843

Merged
merged 1 commit into from
Aug 31, 2021

Conversation

merlimat
Copy link
Contributor

@merlimat merlimat commented Aug 30, 2021

Motivation

In MultiTopicsConsumer we're doing a receiveAsync() operation to transfer messages from the individual consumers into the shared queue, but we're not handling the failure path of the returned CompletableFuture.

This future should in theory never fail, but it fails if there is some bug in the code, as it was the case for #11824.

The main issue is that since we're not handle the future failure path, the exception stack traces are completely hidden, making debugging such issues more complicated.

Modification

  1. Print exception
  2. Retry later, to give it a chance to unblock itself

@merlimat merlimat added type/bug The PR fixed a bug or issue reported a bug doc-not-needed Your PR changes do not impact docs labels Aug 30, 2021
@merlimat merlimat added this to the 2.9.0 milestone Aug 30, 2021
@merlimat merlimat self-assigned this Aug 30, 2021
@lhotari
Copy link
Member

lhotari commented Sep 15, 2021

This PR causes a critical cleanup problem in the Pulsar Client 2.8.1. . The problem is reported in #12024 and fixed in #12044. Please review

eolivelli pushed a commit to datastax/pulsar that referenced this pull request Sep 24, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client cherry-picked/branch-2.8 Archived: 2.8 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.1 release/2.9.0 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants