Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qianye1001 committed Jan 10, 2025
1 parent 30131a3 commit 882228e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ private void callBrokerToExport(CommandLine commandLine, RPCHook rpcHook,
} else if (inputBrokerAddr != null) {
futureList.add(sendRequest(type, defaultMQAdminExt, inputBrokerAddr, null));
}
CompletableFuture.allOf(futureList.toArray(new CompletableFuture[0])).whenComplete(
(v, t) -> System.out.print("broker export done.")
).join();
} catch (Exception e) {
throw new RuntimeException(this.getClass().getSimpleName() + " command failed", e);
} finally {
defaultMQAdminExt.shutdown();
}
CompletableFuture.allOf(futureList.toArray(new CompletableFuture[0])).whenComplete(
(v, t) -> System.out.print("broker export done.")
).join();
}

private CompletableFuture<Void> sendRequest(List<RocksDBConfigToJsonRequestHeader.ConfigType> type,
Expand Down

0 comments on commit 882228e

Please sign in to comment.