Skip to content

[fix][client] Fix async completion in ConsumerImpl#processPossibleToDLQ#19392

Merged
lhotari merged 1 commit intoapache:masterfrom
lhotari:lh-fix-client-dlq-async-completion-issue
Feb 2, 2023
Merged

[fix][client] Fix async completion in ConsumerImpl#processPossibleToDLQ#19392
lhotari merged 1 commit intoapache:masterfrom
lhotari:lh-fix-client-dlq-async-completion-issue

Conversation

@lhotari
Copy link
Copy Markdown
Member

@lhotari lhotari commented Feb 2, 2023

Motivation

  • the possible failure of acknowledging the message isn't handled in ConsumerImpl#processPossibleToDLQ

The exceptionally handler in the code below this particular location doesn't get executed, since it's in a different call chain than the acknowledgeAsync call. Perhaps that was the author's expectation that the failure would be handled by the exceptionally handler.

Modifications

  • complete the future with false when there are failures.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

- the possible failure of acknowledging the message isn't handled
Copy link
Copy Markdown
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@lhotari lhotari merged commit 39dd1cd into apache:master Feb 2, 2023
liangyepianzhou pushed a commit that referenced this pull request Feb 10, 2023
coderzc pushed a commit that referenced this pull request Feb 27, 2023
@coderzc coderzc added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Feb 27, 2023
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Feb 28, 2023
…LQ (apache#19392)

(cherry picked from commit 39dd1cd)
(cherry picked from commit 73f6693)
Annavar-satish pushed a commit to pandio-com/pulsar that referenced this pull request Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants