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 call sync method in async rest api for internalExpireMessagesByPosition #13878

Conversation

liudezhi2098
Copy link
Contributor

Motivation

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

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 21, 2022
@liudezhi2098
Copy link
Contributor Author

/pulsarbot run-failure-checks

@mattisonchao
Copy link
Member

emmm. i think we need to refactor this code. it seems very like callback hell.

@liudezhi2098
Do you have any good idea ?

@liudezhi2098
Copy link
Contributor Author

emmm. i think we need to refactor this code. it seems very like callback hell.

@liudezhi2098 Do you have any good idea ?
The code is not very nice,adjust the style。

@liudezhi2098
Copy link
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@liudezhi2098
Copy link
Contributor Author

/pulsarbot run-failure-checks

@liudezhi2098
Copy link
Contributor Author

/pulsarbot run-failure-checks

Copy link
Contributor

@Technoboy- Technoboy- left a comment

Choose a reason for hiding this comment

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

LGTM

@hangc0276 hangc0276 merged commit 61f99cb into apache:master Jan 27, 2022
Nicklee007 pushed a commit to Nicklee007/pulsar that referenced this pull request Apr 20, 2022
…sagesByPosition (apache#13878)

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

### Modifications
Use async instead of sync method.
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.

None yet

5 participants