poorbarcode commented on code in PR #20131:
URL: https://github.com/apache/pulsar/pull/20131#discussion_r1173577634
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java:
##########
@@ -1171,6 +1172,21 @@ protected CompletableFuture<Void>
internalDeleteTopicAsync(boolean authoritative
.thenCompose(__ ->
pulsar().getBrokerService().deleteTopic(topicName.toString(), force));
}
+ /**
+ * There has a known bug will make Pulsar misidentifies
"tp-partition-0-DLQ-partition-0" as "tp-partition-0-DLQ".
+ * You can see the details from PR
https://github.com/apache/pulsar/pull/19841.
+ * This method is a quick fix and will be removed in master branch after
#19841 and PIP 263 are done.
+ */
+ private boolean isUnexpectedTopicName(PartitionedTopicMetadata
topicMetadata) {
+ if (!topicName.toString().contains(PARTITIONED_TOPIC_SUFFIX)){
+ return false;
+ }
+ if (topicMetadata.partitions <= 0){
+ return false;
Review Comment:
I feel that if another Admin API hits this issue, too, this method can be
reused(ensures this method itself accurately identifies the issue).
--
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]