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

   ### Motivation
   
   If the namespace is deleted, the `cmd-lookup` will still keep retrying, 
because the error code sent to the client is `MetadataError`, and the client 
will retry when it gets `MetadataError`. No matter how many times it tries 
again, it will not succeed.
   
   
https://github.com/apache/pulsar/blob/6cc30c93a05bb16b7ef62ffebc15ceb5e6efb502/pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java#L250-L257
   
   ### Modifications
   
   If the namespace is deleted
   - the `cmd-lookup` will get the error code `TopicNotFound `
   - the rest request will get the response code `404` 
   - improve response message for `API topics` and `API namespaces`
   - `TODO` I will write a test later
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. Please attach the local 
preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR 
description, or else your PR might not get merged. -->
   - [x] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [ ] `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: 
   
   - https://github.com/poorbarcode/pulsar/pull/30


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