Skip to content

Conversation

@nodece
Copy link
Member

@nodece nodece commented Apr 7, 2025

Fixes #24152

Motivation

#24118 breaks checkTopicExists. The topic metadata exists, but the topic may not exist.

These changes are already covered by org.apache.pulsar.broker.namespace.NamespaceServiceTest. However, since this test belongs to the flaky test group, regressions might not be reliably caught.

Modifications

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Copy link

Copilot AI left a 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(

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Apr 7, 2025
@nodece nodece force-pushed the fix-checkTopicExists branch from cf656b1 to 43597f3 Compare April 7, 2025 08:53
@nodece nodece added this to the 4.1.0 milestone Apr 7, 2025
@nodece nodece force-pushed the fix-checkTopicExists branch from 43597f3 to ab19595 Compare April 7, 2025 09:23
@lhotari
Copy link
Member

lhotari commented Apr 7, 2025

These changes are already covered by org.apache.pulsar.broker.namespace.NamespaceServiceTest. However, since this test belongs to the flaky test group, regressions might not be reliably caught.

@nodece Did some test fail in NamespaceServiceTest? I ran that test class on master branch and there aren't any failures.

Copy link
Member

@lhotari lhotari left a 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.

@nodece
Copy link
Member Author

nodece commented Apr 7, 2025

These changes are already covered by org.apache.pulsar.broker.namespace.NamespaceServiceTest. However, since this test belongs to the flaky test group, regressions might not be reliably caught.

@nodece Did some test fail in NamespaceServiceTest? I ran that test class on master branch and there aren't any failures.

Sorry, my local code may be incorrect, so I saw the test fail.

@lhotari
Copy link
Member

lhotari commented Apr 7, 2025

There are 2 test failures in master which I've had to disable while getting Pulsar CI operational in #24155:
75b5b9f

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.

git fetch origin pull/24155/head
git rebase FETCH_HEAD

After PR 24155 has been merged, you can rebase again to cleanup the commits in your PR branch.

@nodece
Copy link
Member Author

nodece commented Apr 7, 2025

/pulsarbot rerun-failure-checks

@lhotari
Copy link
Member

lhotari commented Apr 7, 2025

@nodece Now that #24155 has been merged, please rebase

… partitioned

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
@nodece nodece force-pushed the fix-checkTopicExists branch from 640ddf3 to 905b19a Compare April 7, 2025 13:34
@nodece
Copy link
Member Author

nodece commented Apr 7, 2025

@lhotari Rebase is done, please review.

@lhotari
Copy link
Member

lhotari commented Apr 7, 2025

@nodece I'll review. #24118 and this PR doesn't have any release labels? are these PRs only for 4.1.x?

@nodece
Copy link
Member Author

nodece commented Apr 7, 2025

@nodece I'll review. #24118 and this PR doesn't have any release labels? are these PRs only for 4.1.x?

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>
@nodece nodece requested a review from lhotari April 7, 2025 14:10
lhotari added a commit that referenced this pull request Apr 23, 2025
lhotari added a commit that referenced this pull request Apr 23, 2025
@lhotari
Copy link
Member

lhotari commented Apr 23, 2025

Reverted from branch-3.0, branch-3.3 and branch-4.0 as per this dev mailing list message.

poorbarcode added a commit to poorbarcode/pulsar that referenced this pull request Apr 24, 2025
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 24, 2025
… partitioned (apache#24154)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
(cherry picked from commit 0d6c6f4)
(cherry picked from commit ee6e84f)
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 24, 2025
… partitioned (apache#24154)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
(cherry picked from commit 0d6c6f4)
(cherry picked from commit ee6e84f)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 27, 2025
… partitioned (apache#24154)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
(cherry picked from commit 0d6c6f4)
(cherry picked from commit ee6e84f)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 27, 2025
…topic is partitioned (apache#24154)"

This reverts commit ee6e84f.

(cherry picked from commit 204d8fc)
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 30, 2025
… partitioned (apache#24154)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
(cherry picked from commit 0d6c6f4)
(cherry picked from commit ee6e84f)
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 30, 2025
…topic is partitioned (apache#24154)"

This reverts commit ee6e84f.

(cherry picked from commit 204d8fc)
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request May 1, 2025
…topic is partitioned (apache#24154)"

This reverts commit ee6e84f.

(cherry picked from commit 204d8fc)
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request May 1, 2025
…topic is partitioned (apache#24154)"

This reverts commit ee6e84f.

(cherry picked from commit 204d8fc)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 2, 2025
… partitioned (apache#24154)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
(cherry picked from commit 0d6c6f4)
(cherry picked from commit ee6e84f)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 2, 2025
…topic is partitioned (apache#24154)"

This reverts commit ee6e84f.

(cherry picked from commit 204d8fc)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 2, 2025
… partitioned (apache#24154)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
(cherry picked from commit 0d6c6f4)
(cherry picked from commit b619f9c)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 2, 2025
…topic is partitioned (apache#24154)"

This reverts commit b619f9c.

(cherry picked from commit d6f17d0)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request May 6, 2025
… partitioned (apache#24154)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
(cherry picked from commit 0d6c6f4)
(cherry picked from commit b619f9c)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request May 6, 2025
…topic is partitioned (apache#24154)"

This reverts commit b619f9c.

(cherry picked from commit d6f17d0)
nborisov pushed a commit to nborisov/pulsar that referenced this pull request Sep 12, 2025
walkinggo pushed a commit to walkinggo/pulsar that referenced this pull request Oct 8, 2025
… partitioned (apache#24154)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky-test: OneWayReplicatorUsingGlobalPartitionedTest.testRemoveCluster

4 participants