massakam opened a new pull request #4765: [Issue #4756][broker] Process 
requests asynchronously on some REST APIs (1)
URL: https://github.com/apache/pulsar/pull/4765
 
 
   Master Issue: #4756
   
   ### Motivation
   
   Some of the REST APIs provided by broker send HTTP request to oneself 
internally using a PulsarAdmin instance when they receive requests from 
clients. This may cause a deadlock, as the pulsar-web thread is blocked until a 
response from oneself is returned. As with 
https://github.com/apache/pulsar/pull/4487, these APIs should be introduced 
async rest handlers.
   
   ### Modifications
   
   In this pull-request, added async rest handlers to the following tow APIs 
for non-persistent topics.
   ```
   /admin/non-persistent/{tenant}/{cluster}/{namespace}
   /admin/v2/non-persistent/{tenant}/{namespace}
   ```
   I intend to fix other APIs in subsequent pull-requests.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to