poorbarcode commented on code in PR #19841:
URL: https://github.com/apache/pulsar/pull/19841#discussion_r1160401769
##########
pulsar-common/src/main/java/org/apache/pulsar/common/naming/TopicName.java:
##########
@@ -231,7 +231,7 @@ public String getEncodedLocalName() {
}
public TopicName getPartition(int index) {
- if (index == -1 || this.toString().contains(PARTITIONED_TOPIC_SUFFIX))
{
+ if (index == -1 || this.toString().endsWith(PARTITIONED_TOPIC_SUFFIX +
index)) {
Review Comment:
> we will not automatically create a partitioned topic for the DLQ topic
even if users are enabled partitioned topic auto-creation.
Yes, [PIP-263: Just auto-create no-partitioned DLQ And Prevent auto-create a
DLQ for a DLQ]( https://github.com/apache/pulsar/issues/20033) try to do this.
--
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]