-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 SystemTopicBasedTopicPoliciesService NPE issue #17602
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Technoboy-
changed the title
Fix SystemTopicBasedTopicPoliciesService NPE issue
[fix][broker] Fix SystemTopicBasedTopicPoliciesService NPE issue
Sep 13, 2022
@Technoboy- Please provide a correct documentation label for your PR. |
Technoboy-
added
doc-not-needed
Your PR changes do not impact docs
type/bug
The PR fixed a bug or issue reported a bug
area/broker
release/2.10.3
and removed
doc-label-missing
labels
Sep 13, 2022
github-actions
bot
added
doc-label-missing
and removed
doc-not-needed
Your PR changes do not impact docs
labels
Sep 13, 2022
codelipenghui
approved these changes
Sep 13, 2022
@Technoboy- Could you please also link the PR that push to branch-2.9? |
yes, #13840, also updated in the motivation. |
Technoboy-
added
doc-not-needed
Your PR changes do not impact docs
and removed
doc-label-missing
labels
Sep 13, 2022
mattisonchao
approved these changes
Sep 13, 2022
github-actions
bot
added
doc-label-missing
and removed
doc-not-needed
Your PR changes do not impact docs
labels
Sep 13, 2022
Technoboy-
added
doc-not-needed
Your PR changes do not impact docs
and removed
doc-label-missing
labels
Sep 13, 2022
Technoboy-
added a commit
that referenced
this pull request
Sep 14, 2022
tisonkun
pushed a commit
to tisonkun/pulsar
that referenced
this pull request
Sep 14, 2022
liangyepianzhou
pushed a commit
that referenced
this pull request
Dec 5, 2022
) (cherry picked from commit b789b08)
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Dec 6, 2022
…che#17602) (cherry picked from commit b789b08) (cherry picked from commit e281cad)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/broker
cherry-picked/branch-2.10
cherry-picked/branch-2.11
doc-label-missing
release/2.10.3
type/bug
The PR fixed a bug or issue reported a bug
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
When SystemTopicBasedTopicPoliciesService#getTopicPolicies is invoked before SystemTopicBasedTopicPoliciesService#addOwnedNamespaceBundleAsync, it will cause NPE:
Stack trace
We have pushed this patch to branch-2.9(#13840), we only need to add this to branch-2.10, 2.11.
Modifications
ownedBundlesCountPerNamespace.putIfAbsent(namespace, new AtomicInteger(1))
in the prepareInitPoliciesCache method.Documentation
no-need-doc