-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue] Fix get schemaName by partitioned topic name #7708
Conversation
@@ -342,7 +342,9 @@ public boolean isGlobal() { | |||
public String getSchemaName() { | |||
return getTenant() | |||
+ "/" + getNamespacePortion() | |||
+ "/" + getEncodedLocalName(); | |||
+ "/" + (isPartitioned() ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getPartitionedTopicName already implemented the functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I could reuse it, but the method getPartitionedTopicName will return a complete topic name with the domain. Maybe I could get the encodedLocalName in this way.
TopicName.get(getPartitionedTopicName()).getEncodedLocalName()
/pulsarbot run-failure-checks |
5 similar comments
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
e517ec2
to
09b1e02
Compare
Fixes apache#7676 ### Motivation Currently, there is an error that gets schemaName by partitioned topic name. ### Modifications Add partitioned check in method `topicName. getSchemaName()`.
Fixes apache#7676 ### Motivation Currently, there is an error that gets schemaName by partitioned topic name. ### Modifications Add partitioned check in method `topicName. getSchemaName()`.
Fixes apache#7676 ### Motivation Currently, there is an error that gets schemaName by partitioned topic name. ### Modifications Add partitioned check in method `topicName. getSchemaName()`.
Fixes apache#7676 ### Motivation Currently, there is an error that gets schemaName by partitioned topic name. ### Modifications Add partitioned check in method `topicName. getSchemaName()`.
Fixes #7676
Motivation
Currently, there is an error that gets schemaName by partitioned topic name.
Modifications
Add partitioned check in method
topicName. getSchemaName()
.Verifying this change
Add a new unit test.
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation