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] Fix namespace bundle stuck in unloading status (#21445) #21566

Merged
merged 9 commits into from
Nov 20, 2023
Merged

[fix][broker] Fix namespace bundle stuck in unloading status (#21445) #21566

merged 9 commits into from
Nov 20, 2023

Conversation

mattisonchao
Copy link
Member

Motivation

Cherry-pick #21445 to branch-2.11

  • doc-not-needed

PR #21231 made user topic creation rely on system topic `__change_event` if the user is enabling `topicLevelPoliciesEnabled`.

It will introduce a race condition with namespace bundle unloading. All creating topics want to create `__change_event` reader but constantly fail by namespace-bundle inactive and retry mechanism. Unfortunately, the namespace-bundle unloading operation is waiting for all the topics to be completed and then release inactive status. Therefore, they will be stuck in a deadlock until one gets a timeout.

- Get the topic policy before loading.

(cherry picked from commit 428c18c)
@mattisonchao mattisonchao merged commit f59093c into apache:branch-2.11 Nov 20, 2023
32 of 38 checks passed
@mattisonchao mattisonchao deleted the cherry-pick/2_11_21445 branch November 20, 2023 02:45
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.

None yet

3 participants