You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Correctly handle the asynchronous programming suggestions of api and base in the admin api of pulsar-broker. #7884
Is your feature request related to a problem? Please describe.
I recently did topic level configuration. In the admin web module org.apache.pulsar.broker.admin, the asynchronous call between the api and the base made me feel very frustrated. The asyncResponse of the api layer was passed to the base layer, which made the handling of exceptions very complicated. . And this operation couples the api layer and the base layer together.
I understand that base is equivalent to the service layer, and api is the interface layer, and their responsibilities should be separated.
Describe the solution you'd like
For base layer methods that support asynchronous, it is recommended to use CompletableFuture return instead of passing in asyncResponse
For exceptions, normal throw is fine, no other operations are required.
Activity
tisonkun commentedon Dec 11, 2022
Closed as stale. Please create a new issue if it's still relevant to the maintained versions.