Skip to content

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

Merged
mattisonchao merged 9 commits into
apache:branch-2.11from
mattisonchao:cherry-pick/2_11_21445
Nov 20, 2023
Merged

mattisonchao merged 9 commits into
apache:branch-2.11from
mattisonchao:cherry-pick/2_11_21445

Conversation

@mattisonchao

Copy link
Copy Markdown
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
@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.

3 participants