Technoboy- commented on code in PR #20709:
URL: https://github.com/apache/pulsar/pull/20709#discussion_r1251534137
##########
pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/internal/BrokersImpl.java:
##########
@@ -210,12 +210,13 @@ public void failed(Throwable throwable) {
}
@Override
- public CompletableFuture<Void> shutDownBrokerGracefully(int
maxConcurrentUnloadPerSec,
- boolean
forcedTerminateTopic) {
+ public void shutDownBrokerGracefully(
+ int maxConcurrentUnloadPerSec, boolean forcedTerminateTopic
+ ) {
WebTarget path = adminBrokers.path("shutdown")
.queryParam("maxConcurrentUnloadPerSec",
maxConcurrentUnloadPerSec)
.queryParam("forcedTerminateTopic", forcedTerminateTopic);
- return asyncPostRequest(path, Entity.entity("",
MediaType.APPLICATION_JSON));
+ asyncPostRequest(path, Entity.entity("",
MediaType.APPLICATION_JSON)).join();
Review Comment:
Not here.
Fix #20617, I think the simple way is to fix like
```
getAdmin().brokers().shutDownBrokerGracefully(maxConcurrentUnloadPerSec,
forcedTerminateTopic).join();
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]