Skip to content

Handle exception double - #12881

Merged
codelipenghui merged 5 commits into
apache:masterfrom
liangyepianzhou:handle_exception_double
Nov 19, 2021
Merged

Handle exception double#12881
codelipenghui merged 5 commits into
apache:masterfrom
liangyepianzhou:handle_exception_double

Conversation

@liangyepianzhou

@liangyepianzhou liangyepianzhou commented Nov 19, 2021

Copy link
Copy Markdown
Contributor

Fixes #12744

Motivation

The exception here was handled twice, resulting in a null pointer exception.
And the position will be updated twice.

Modifications

Keep the exceptionally() part and convert the whenComplete() into thenAccept().

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

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): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

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

Need to update docs?

  • no-need-doc

@github-actions

Copy link
Copy Markdown

@liangyepianzhou:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions

Copy link
Copy Markdown

@liangyepianzhou:Thanks for providing doc info!

@github-actions github-actions Bot added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels Nov 19, 2021
@liangyepianzhou

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@liangyepianzhou

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@liangyepianzhou

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui
codelipenghui merged commit dbac121 into apache:master Nov 19, 2021
@lhotari

lhotari commented Nov 19, 2021

Copy link
Copy Markdown
Member

Good work @liangyepianzhou !

dlg99 pushed a commit to dlg99/pulsar that referenced this pull request Nov 23, 2021
Fixes apache#12744

### Motivation
The exception here was handled twice, resulting in a null pointer exception.
And the position will be updated twice.
### Modifications
Keep the exceptionally() part and convert the whenComplete() into thenAccept().
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request Nov 29, 2021
Fixes apache#12744

### Motivation
The exception here was handled twice, resulting in a null pointer exception.
And the position will be updated twice.
### Modifications
Keep the exceptionally() part and convert the whenComplete() into thenAccept().
fxbing pushed a commit to fxbing/pulsar that referenced this pull request Dec 19, 2021
Fixes apache#12744

### Motivation
The exception here was handled twice, resulting in a null pointer exception.
And the position will be updated twice.
### Modifications
Keep the exceptionally() part and convert the whenComplete() into thenAccept().
codelipenghui pushed a commit that referenced this pull request Dec 21, 2021
Fixes #12744

### Motivation
The exception here was handled twice, resulting in a null pointer exception.
And the position will be updated twice.
### Modifications
Keep the exceptionally() part and convert the whenComplete() into thenAccept().

(cherry picked from commit dbac121)
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/transaction cherry-picked/branch-2.9 Archived: 2.9 is end of life doc-not-needed Your PR changes do not impact docs release/2.9.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants