Skip to content
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] Topic can never be loaded up due to broker maintains a failed topic creation future #23184

Merged
merged 4 commits into from
Aug 18, 2024

Conversation

poorbarcode
Copy link
Contributor

Motivation

There are two scenarios that may leave a failed topic creation future in brokerService.topics because forgot to remove the failed future from the map, which leads to the topic never being loaded up successfully.

  • Topic load and delete execute at the same time: see the test testTopicLoadAndDeleteAtTheSameTime
  • Check ownership fails: see the test testCheckOwnerShipFails

Modifications

Remove the failed future if load topic fails

Documentation

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

Matching PR in forked repository

PR in forked repository: x

@poorbarcode poorbarcode added this to the 4.0.0 milestone Aug 16, 2024
@poorbarcode poorbarcode self-assigned this Aug 16, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 16, 2024
@poorbarcode poorbarcode requested a review from lhotari August 16, 2024 17:53
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.

LGTM

@poorbarcode poorbarcode merged commit 9edaa85 into apache:master Aug 18, 2024
55 of 56 checks passed
lhotari pushed a commit that referenced this pull request Aug 19, 2024
… failed topic creation future (#23184)

(cherry picked from commit 9edaa85)
lhotari pushed a commit that referenced this pull request Aug 19, 2024
… failed topic creation future (#23184)

(cherry picked from commit 9edaa85)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 22, 2024
… failed topic creation future (apache#23184)

(cherry picked from commit 9edaa85)
(cherry picked from commit 34c6fa0)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 23, 2024
… failed topic creation future (apache#23184)

(cherry picked from commit 9edaa85)
(cherry picked from commit 34c6fa0)
grssam pushed a commit to grssam/pulsar that referenced this pull request Sep 4, 2024
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Sep 4, 2024
… failed topic creation future (apache#23184)

(cherry picked from commit 9edaa85)
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants