Skip to content

[Broker]make internalSkipMessages method async - #14045

Merged
codelipenghui merged 2 commits into
apache:masterfrom
liudezhi2098:make_internalSkipMessages_method_async
Feb 7, 2022
Merged

[Broker]make internalSkipMessages method async#14045
codelipenghui merged 2 commits into
apache:masterfrom
liudezhi2098:make_internalSkipMessages_method_async

Conversation

@liudezhi2098

Copy link
Copy Markdown
Contributor

Master Issue: #14013

Motivation

Avoid call sync method in async rest API for PersistentTopicsBase#internalSkipMessages.

Modifications

  • Use async instead of sync method.

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

Need to update docs?

  • no-need-doc

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jan 29, 2022
@liudezhi2098

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@mattisonchao mattisonchao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have two another suggestions:

  • Remove asyncResponse from the internal method, and unified exception and result handling are performed at the controller layer, which makes the internal method purer.
  • Have you checked to see if there is a test for the modified method ?

@liudezhi2098

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@liudezhi2098

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui codelipenghui added this to the 2.10.0 milestone Feb 7, 2022
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