eolivelli commented on code in PR #19171:
URL: https://github.com/apache/pulsar/pull/19171#discussion_r1065743142
##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/service/persistent/PersistentTopicTest.java:
##########
@@ -422,4 +422,24 @@ public void testCreateNonExistentPartitions() throws
PulsarAdminException, Pulsa
}
Assert.assertEquals(admin.topics().getPartitionedTopicMetadata(topicName).partitions,
4);
}
+
+ @Test
+ public void testCompatibilityWithPartitionKeyword() throws
PulsarAdminException, PulsarClientException {
+ final String topicName =
"persistent://prop/ns-abc/testCompatibilityWithPartitionKeyword";
+ TopicName topicNameEntity = TopicName.get(topicName);
+ String partition2 = topicNameEntity.getPartition(2).toString();
+ Producer<byte[]> producer = pulsarClient.newProducer()
+ .topic(partition2)
+ .create();
+ List<String> topics = admin.topics().getList("prop/ns-abc");
+ producer.close();
+ conf.setAllowAutoTopicCreation(false);
+ Assert.assertTrue(topics.contains(partition2));
+ Assert.assertThrows(PulsarAdminException.NotFoundException.class,
+ () -> admin.topics().getPartitionedTopicMetadata(topicName));
+ producer = pulsarClient.newProducer()
Review Comment:
which is the case of that behaviour ? is it fixed by this 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]