mattisonchao opened a new issue, #19085:
URL: https://github.com/apache/pulsar/issues/19085

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   All versions.
   
   ### Minimal reproduce step
   
   ```java
   final String topicName = "non-persistent://public/default/test";
   admin.topics().createPartitionedTopic(topicName, 4);
   TopicName partition = TopicName.get(topicName).getPartition(4);
   @Cleanup
   Producer<byte[]> producer = pulsarClient.newProducer()
             .topic(partition.toString())
             .create();
   ```
   
   ### What did you expect to see?
   
   The non-existent partition shouldn't be created.
   
   >"persistent://public/default/test-partition-0"
   "persistent://public/default/test-partition-3"
   "persistent://public/default/test-partition-2"
   "persistent://public/default/test-partition-1"
   
   ### What did you see instead?
   
   The non-existent partition create success.
   
   ### Anything else?
   
   nah.
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


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