poorbarcode opened a new pull request, #25051:
URL: https://github.com/apache/pulsar/pull/25051

   ### Background
   `PulsarAdminTool` is the management of execution of pulsar admin client 
commans, it calls `command.run` and then calls`systm.exit`.
   
   ### Motivation
   
   The command `pulsar-admin topicPolicies set-replication-clusters` is an 
asynchronize method, so it can not be executed since `system.exit` runs before 
the asynchronize method. See also 
https://github.com/apache/pulsar/blob/v4.1.2/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/PulsarAdminTool.java#L227-L233
   
   When you call `pulsar-admin topicPolicies set-replication-clusters`, it does 
nothing.
   
   ### Modifications
   
   fix the issue
   
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: x
   


-- 
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]

Reply via email to