gaoran10 opened a new pull request #14199:
URL: https://github.com/apache/pulsar/pull/14199


   ### Motivation
   
   Currently, it's hard to check the non-persistent-non-partitioned topic, 
because it only exists in the broker cache, it doesn't have metadata.
   
   If there is a non-persistent and non-partitioned topic exists in broker0 and 
the configuration `AllowAutoTopicCreation` is false, we perform an HTTP lookup 
request to broker1, it will return a TopicNotFound exception.
   
   ### Modifications
   
   If the topic is non-persistent and non-partitioned, we'll return the true 
flag to ensure the http lookup can return a result.
   
   ### Verifying this change
   
   Add a test to verify the HTTP lookup request to each broker could return a 
right lookup result.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   ### Documentation
   
   Check the box below or label this PR directly (if you have committer 
privilege).
   
   Need to update docs? 
   
   - [ ] `doc-required` 
     
     (If you need help on updating docs, create a doc issue)
     
   - [x] `no-need-doc` 
     
     (Please explain why)
     
   - [ ] `doc` 
     
     (If this PR contains doc changes)
   
   
   


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