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][client] ConsumerBuilderImpl can not set null to deadLetterPolicy. #14980

Merged

Conversation

Jason918
Copy link
Contributor

@Jason918 Jason918 commented Apr 1, 2022

Motivation

ConsumerBuilderImpl can not set null to deadLetterPolicy if it's already assigned a non-null value.

Modifications

Calls conf.setDeadLetterPolicy if deadLetterPolicy is null.

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

  • Added new unit test testNullDeadLetterPolicy

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

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Apr 1, 2022
@RobertIndie RobertIndie added type/bug The PR fixed a bug or issue reported a bug area/client component/client-java labels Apr 1, 2022
@RobertIndie RobertIndie merged commit 2f53071 into apache:master Apr 2, 2022
@RobertIndie RobertIndie added this to the 2.11.0 milestone Apr 2, 2022
codelipenghui pushed a commit that referenced this pull request Apr 4, 2022
#14980)

`ConsumerBuilderImpl` can not set null to deadLetterPolicy if it's already assigned a non-null value.

Calls `conf.setDeadLetterPolicy` if `deadLetterPolicy` is null.

(cherry picked from commit 2f53071)
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Apr 4, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Apr 5, 2022
apache#14980)

`ConsumerBuilderImpl` can not set null to deadLetterPolicy if it's already assigned a non-null value.

Calls `conf.setDeadLetterPolicy` if `deadLetterPolicy` is null.

(cherry picked from commit 2f53071)
(cherry picked from commit a4c6ae4)
codelipenghui pushed a commit that referenced this pull request Apr 19, 2022
#14980)

### Motivation

`ConsumerBuilderImpl` can not set null to deadLetterPolicy if it's already assigned a non-null value.

### Modifications

Calls `conf.setDeadLetterPolicy` if `deadLetterPolicy` is null.

(cherry picked from commit 2f53071)
@codelipenghui codelipenghui added cherry-picked/branch-2.9 Archived: 2.9 is end of life cherry-picked/branch-2.10 and removed cherry-picked/branch-2.9 Archived: 2.9 is end of life labels Apr 19, 2022
codelipenghui pushed a commit that referenced this pull request Apr 19, 2022
#14980)

`ConsumerBuilderImpl` can not set null to deadLetterPolicy if it's already assigned a non-null value.

Calls `conf.setDeadLetterPolicy` if `deadLetterPolicy` is null.

(cherry picked from commit 2f53071)
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Apr 19, 2022
Nicklee007 pushed a commit to Nicklee007/pulsar that referenced this pull request Apr 20, 2022
apache#14980)

### Motivation

`ConsumerBuilderImpl` can not set null to deadLetterPolicy if it's already assigned a non-null value.

### Modifications

Calls `conf.setDeadLetterPolicy` if `deadLetterPolicy` is null.
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 cherry-picked/branch-2.9 Archived: 2.9 is end of life cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.8.4 release/2.9.3 release/2.10.1 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.

5 participants