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

   ### Motivation
   
   see also [PIP-344 Correct the behavior of the public API 
pulsarClient.getPartitionsForTopic(topicName)](https://github.com/apache/pulsar/pull/22182)
   
   #### Background
   - When calling `pulsarClient.getPartitionsForTopic(topicName)`, Pulsar will 
automatically create the partitioned topic metadata if it does not exist, 
either using `HttpLookupService` or `BinaryProtoLookupService`.
   - The partitioned topic auto-creation is dependent on 
`pulsarClient.getPartitionsForTopic`
   - It triggers partitioned metadata creation by 
`pulsarClient.getPartitionsForTopic`
   - And triggers the topic partition creation by producers' registration and 
consumers' registration.
   
   #### Issue
   Since the method `pulsarClient.getPartitionsForTopic` is a public API, and 
it is named `getxxx,` it should edit nothing.
   
   ### Modifications
   
   - Do not create partitioned metadata when calling 
pulsarClient.getPartitionsForTopic(topicName)
   
   ### 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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to