-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix] [broker] response not-found error if topic does not exist when calling getPartitionedTopicMetadata #22838
Conversation
/pulsarbot rerun-failure-checks |
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/TopicExistsInfo.java
Outdated
Show resolved
Hide resolved
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java
Outdated
Show resolved
Hide resolved
…calling getPartitionedTopicMetadata
b7ce67c
to
3e061cc
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22838 +/- ##
============================================
- Coverage 73.57% 73.26% -0.31%
- Complexity 32624 33033 +409
============================================
Files 1877 1892 +15
Lines 139502 142015 +2513
Branches 15299 15576 +277
============================================
+ Hits 102638 104047 +1409
- Misses 28908 29949 +1041
- Partials 7956 8019 +63
Flags with carried forward coverage won't be shown. Click here to find out more.
|
pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceService.java
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/TopicExistsInfo.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/TopicExistsInfo.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/TopicExistsInfo.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/TopicExistsInfo.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/TopicExistsInfo.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/TopicExistsInfo.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/TopicExistsInfo.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/TopicExistsInfo.java
Outdated
Show resolved
Hide resolved
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBuilderImpl.java
Show resolved
Hide resolved
@lhotari Could you take a look at your convenience |
The review has been no response for a long time
…calling getPartitionedTopicMetadata (apache#22838) (cherry picked from commit 9aed736) (cherry picked from commit 1d2959b)
…calling getPartitionedTopicMetadata (apache#22838) (cherry picked from commit 9aed736) (cherry picked from commit 1d2959b)
…calling getPartitionedTopicMetadata (apache#22838) (cherry picked from commit 9aed736) (cherry picked from commit 1d2959b)
…calling getPartitionedTopicMetadata (apache#22838) (cherry picked from commit 9aed736) (cherry picked from commit 1d2959b)
…calling getPartitionedTopicMetadata (apache#22838) (cherry picked from commit 9aed736) (cherry picked from commit 1d2959b)
Motivation & Modifications
Section Instead of returning a 0 partitioned metadata, respond to a not found error when calling pulsarClient.getPartitionsForTopic(String) if the topic does not exist.
Main PIP: PIP-344 Correct the behavior of the public API pulsarClient.getPartitionsForTopic(topicName)
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: x