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

[broker] Fix producerFuture.completeExceptionally not called before sendErrorResponse #14025

Merged

Conversation

Jason918
Copy link
Contributor

@Jason918 Jason918 commented Jan 29, 2022

Motivation

producerFuture.completeExceptionally is not called before sendErrorResponse when encryption check or schema check failed in ServerCnx.handleProduce.

Modifications

Add producerFuture.completeExceptionally before sendErrorResponse

Verifying this change

  • Make sure that the change passes the CI checks.

This change is already covered by existing tests.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

Check the box below and label this PR (if you have committer privilege).

Need to update docs?

  • no-need-doc

bug fix.

… `commandSender.sendErrorResponse` in `ServerCnx.handleProducer`
@Jason918 Jason918 self-assigned this Jan 29, 2022
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 29, 2022
@Jason918 Jason918 closed this Jan 29, 2022
@Jason918 Jason918 reopened this Jan 29, 2022
Copy link
Member

@michaeljmarshall michaeljmarshall left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for finding these references @Jason918! I looked at this the other day, but clearly I missed these.

@codelipenghui codelipenghui merged commit 949fe74 into apache:master Jan 29, 2022
@codelipenghui codelipenghui added this to the 2.10.0 milestone Jan 29, 2022
Nicklee007 pushed a commit to Nicklee007/pulsar that referenced this pull request Apr 20, 2022
… `commandSender.sendErrorResponse` in `ServerCnx.handleProducer` (apache#14025)

### Motivation

`producerFuture.completeExceptionally` is not called before `sendErrorResponse` when encryption check or schema check failed in `ServerCnx.handleProduce`.

### Modifications

Add `producerFuture.completeExceptionally` before `sendErrorResponse`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants