You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/11/24 07:35:14 UTC
[GitHub] [pulsar] BewareMyPower commented on pull request #18594: [improve][broker] Add an option to return 0 when querying partitions of a nonexistent topic
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org