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

   ### Motivation & Modifications
   
   The correct usage of deleting topics:
   - `non-partitioned`: `pulsar-admin topics delete <topic>`
   - `partitioned`: `pulsar-admin topics delete-partitioned-topic <topic>`
   
   When you attempt to delete a partitioned topic with `pulsar-admin topics 
delete <topic>`, you will get a `404` error: `tpxxx is not found`. We would 
better change the error message to `tpxxx is a partitioned topic, please call 
delete-partitioned-topic instead`. And if use get a `404`, they will assume it 
has been deleted, so change the response code to `409`.
   
   
   ### 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