BewareMyPower commented on PR #18594:
URL: https://github.com/apache/pulsar/pull/18594#issuecomment-1326060550

   This PR also fixes the incompatibility issue of 
`allowAutoTopicCreationType`. Adding the following configs to run a standalone 
of 2.7.5.
   
   ```properties
   allowAutoTopicCreationType=partitioned
   defaultNumPartitions=4
   ```
   
   Then producing a message to a topic named "my-topic", you can see the 
created topic is still non-partitioned.
   
   ```bash
   $ ./bin/pulsar-admin topics list public/default
   "persistent://public/default/my-topic"
   ```
   
   However, with the standalone that includes this patch.
   
   ```properties
   checkTopicExistsWhenQueryPartitions=false
   allowAutoTopicCreationType=partitioned
   defaultNumPartitions=4
   ```
   
   The created topic is a partitioned topic:
   
   ```bash
   $ ./bin/pulsar-admin topics list public/default
   "persistent://public/default/my-topic-partition-0"
   "persistent://public/default/my-topic-partition-3"
   "persistent://public/default/my-topic-partition-1"
   "persistent://public/default/my-topic-partition-2"
   ```


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