-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker] Allow user lookup topic name with -partition- but no metadata
#19171
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
Conversation
...ar-broker/src/test/java/org/apache/pulsar/broker/service/persistent/PersistentTopicTest.java
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #19171 +/- ##
============================================
+ Coverage 45.64% 47.42% +1.78%
+ Complexity 11043 10779 -264
============================================
Files 773 713 -60
Lines 74463 69730 -4733
Branches 8018 7496 -522
============================================
- Hits 33986 33072 -914
+ Misses 36687 32933 -3754
+ Partials 3790 3725 -65
Flags with carried forward coverage won't be shown. Click here to find out more.
|
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceService.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceService.java
Outdated
Show resolved
Hide resolved
…/NamespaceService.java
poorbarcode
left a comment
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.
LGTM
| .create(); | ||
| producer.close(); | ||
| // Check the topic exist in the list again. | ||
| Assert.assertTrue(topics.contains(partition2)); |
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.
we didn't call topics = admin.topics().getList("prop/ns-abc"); again.
Motivation
This behaviour is broken by PR #18193,
In the previous version, we could use the pulsar client to look up the topic with the
-partition-keyword. Even this topic doesn't have partition metadata. But currently, we can't do that. You can check the test to know the detail.Modifications
-partition-but no metadataVerifying this change
Documentation
doc-not-needed