Skip to content

Commit cc8282d

Browse files
committed
[fix][broker]Not allow to create non-persistent partitioned topic if topic name contain '-partition-'.
1 parent 1ab6345 commit cc8282d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/NonPersistentTopics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public void createPartitionedTopic(
186186
try {
187187
validateNamespaceName(tenant, namespace);
188188
validateGlobalNamespaceOwnership();
189-
validateTopicName(tenant, namespace, encodedTopic);
189+
validatePartitionedTopicName(tenant, namespace, encodedTopic);
190190
internalCreatePartitionedTopic(asyncResponse, numPartitions, createLocalTopicOnly);
191191
} catch (Exception e) {
192192
log.error("[{}] Failed to create partitioned topic {}", clientAppId(), topicName, e);

0 commit comments

Comments
 (0)