You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/12/18 04:49:33 UTC
[GitHub] [pulsar-client-go] cckellogg commented on a change in pull request
#128: fix requestID using consumerID && loopclosure issue && add old style
topic support
cckellogg commented on a change in pull request #128: fix requestID using consumerID && loopclosure issue && add old style topic support
URL: https://github.com/apache/pulsar-client-go/pull/128#discussion_r359150949
##########
File path: pulsar/internal/topic_name.go
##########
@@ -44,9 +44,10 @@ func ParseTopicName(topic string) (*TopicName, error) {
if !strings.Contains(topic, "://") {
// The short topic name can be:
// - <topic>
- // - <property>/<namespace>/<topic>
+ // - <tenant>/<namespace>/<topic>
+ // - <tenant>/<cluster>/<namespace>/<topic>
parts := strings.Split(topic, "/")
- if len(parts) == 3 {
+ if len(parts) == 3 || len(parts) == 4 {
Review comment:
Overall looks good. Let's add a test case for 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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services