Skip to content

Conversation

@mattisonchao
Copy link
Member

@mattisonchao mattisonchao commented Nov 13, 2023

Motivation

Cherry-pick #21445 to branch-3.0

  • doc-not-needed

### Motivation

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.

### Modifications

- Get the topic policy before loading.

(cherry picked from commit 428c18c)
@github-actions
Copy link

@mattisonchao Please add the following content to your PR description and select a checkbox:

- [ ] `doc` <!-- Your PR contains doc changes -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->

@mattisonchao
Copy link
Member Author

I tested in my local env without issue. rerun the test.

@mattisonchao mattisonchao reopened this Nov 13, 2023
@poorbarcode poorbarcode merged commit 6b84514 into apache:branch-3.0 Nov 14, 2023
coderzc pushed a commit to coderzc/pulsar that referenced this pull request Nov 21, 2023
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.

2 participants