yuruguo commented on code in PR #19235:
URL: https://github.com/apache/pulsar/pull/19235#discussion_r1111473477


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java:
##########
@@ -1284,7 +1289,11 @@ public void getPartitionedStats(
             @ApiParam(value = "If return the earliest time in backlog")
             @QueryParam("getEarliestTimeInBacklog") @DefaultValue("false") 
boolean getEarliestTimeInBacklog) {
         try {
-            validatePartitionedTopicName(tenant, namespace, encodedTopic);
+            validateTopicName(tenant, namespace, encodedTopic);

Review Comment:
   The code I added is not exactly the same as the code you mentioned, mainly 
in `topicName.isPartitioned()` and 
`encodedTopic.contains(TopicName.PARTITIONED_TOPIC_SUFFIX)`, the purpose is to 
improve the verification, details see #19234 



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