-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker] Directly query single topic existence when the topic is partitioned #24154
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
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceService.java:1428
- Ensure that the new direct query for single topic existence is fully covered by unit tests, particularly verifying that checkNonPartitionedTopicExists returns the correct TopicExistsInfo when the topic is partitioned.
return checkNonPartitionedTopicExists(topic).thenApply(
cf656b1 to
43597f3
Compare
43597f3 to
ab19595
Compare
@nodece Did some test fail in NamespaceServiceTest? I ran that test class on master branch and there aren't any failures. |
lhotari
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.
Add a test that explicitly tests the correct behavior.
pulsar-client-api/src/main/java/org/apache/pulsar/client/api/PulsarClientException.java
Show resolved
Hide resolved
Sorry, my local code may be incorrect, so I saw the test fail. |
|
There are 2 test failures in master which I've had to disable while getting Pulsar CI operational in #24155: Please rebase this PR on top of those changes. It could be done before PR #24155 is merged so that you can already start preparing the changes. After PR 24155 has been merged, you can rebase again to cleanup the commits in your PR branch. |
468e168 to
640ddf3
Compare
|
/pulsarbot rerun-failure-checks |
… partitioned Signed-off-by: Zixuan Liu <nodeces@gmail.com>
640ddf3 to
905b19a
Compare
|
@lhotari Rebase is done, please review. |
pulsar-broker/src/test/java/org/apache/pulsar/broker/namespace/NamespaceServiceTest.java
Outdated
Show resolved
Hide resolved
Yes. I think it would be helpful to start a discussion on the dev mailing list regarding the feedback in this comment. |
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
|
Reverted from branch-3.0, branch-3.3 and branch-4.0 as per this dev mailing list message. |
… partitioned (apache#24154) Signed-off-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit 0d6c6f4) (cherry picked from commit ee6e84f)
… partitioned (apache#24154) Signed-off-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit 0d6c6f4) (cherry picked from commit ee6e84f)
… partitioned (apache#24154) Signed-off-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit 0d6c6f4) (cherry picked from commit ee6e84f)
…topic is partitioned (apache#24154)" This reverts commit ee6e84f. (cherry picked from commit 204d8fc)
… partitioned (apache#24154) Signed-off-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit 0d6c6f4) (cherry picked from commit ee6e84f)
…topic is partitioned (apache#24154)" This reverts commit ee6e84f. (cherry picked from commit 204d8fc)
…topic is partitioned (apache#24154)" This reverts commit ee6e84f. (cherry picked from commit 204d8fc)
…topic is partitioned (apache#24154)" This reverts commit ee6e84f. (cherry picked from commit 204d8fc)
… partitioned (apache#24154) Signed-off-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit 0d6c6f4) (cherry picked from commit ee6e84f)
…topic is partitioned (apache#24154)" This reverts commit ee6e84f. (cherry picked from commit 204d8fc)
… partitioned (apache#24154) Signed-off-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit 0d6c6f4) (cherry picked from commit b619f9c)
…topic is partitioned (apache#24154)" This reverts commit b619f9c. (cherry picked from commit d6f17d0)
… partitioned (apache#24154) Signed-off-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit 0d6c6f4) (cherry picked from commit b619f9c)
…topic is partitioned (apache#24154)" This reverts commit b619f9c. (cherry picked from commit d6f17d0)
…topic is partitioned (apache#24154)" This reverts commit b619f9c.
… partitioned (apache#24154) Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Fixes #24152
Motivation
#24118 breaks
checkTopicExists. The topic metadata exists, but the topic may not exist.These changes are already covered byorg.apache.pulsar.broker.namespace.NamespaceServiceTest. However, since this test belongs to theflakytest group, regressions might not be reliably caught.Modifications
NotFoundExceptioninstead ofTopicDoesNotExistExceptionthat is introduced by [fix][broker] Add topic consistency check #24118.Documentation
docdoc-requireddoc-not-neededdoc-complete