-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Make bundle REST calls to be async #7776
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
Conversation
ad0eb11 to
0d01fc1
Compare
|
/pulsarbot run-failure-checks |
1 similar comment
|
/pulsarbot run-failure-checks |
|
ping @merlimat Can you merge master code and fix conflict? |
|
ping @merlimat again, Can you merge master code and fix conflict? |
|
@merlimat Could you please rebase to the apache/master branch? |
|
move to milestone 2.8.0 first |
|
@merlimat Could you please rebase to the apache/master branch? |
|
@merlimat:Thanks for your contribution. For this PR, do we need to update docs? |
|
Closed as stale and conflict. Please rebase and resubmit the patch if it's still relevant. |
Motivation
Several operations that work over bundle are triggering multiple calls, one per bundle, against the broker, to be redirected to other brokers.
Since these HTTP calls are handled synchronously, if there are many bundles in a namespace, it can cause a deadlock in Jetty threads, since 1 call will fan out to make multiple calls to itself.
To avoid that, we need to make sure all the operations regarding bundles are handled asynchronously.