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 potential exception cause the policy service init fail. #19746

Merged
merged 2 commits into from
Mar 9, 2023

Conversation

Technoboy-
Copy link
Contributor

Motivation

We find that sometimes we can't get the topic policy all the time. After dumping the broker file, we find the namespace value in policyCacheInitMap is false, but the reader was created successfully.

image

image

I suspect that there may be some exceptions that occurs in the refreshTopicPoliciesCache.

Modifications

Move the refreshTopicPoliciesCache to the thenAccept block so we can catch any exceptions.

Documentation

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

@Technoboy- Technoboy- self-assigned this Mar 8, 2023
@Technoboy- Technoboy- added this to the 3.0.0 milestone Mar 8, 2023
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Mar 8, 2023
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Mar 8, 2023
@Technoboy-
Copy link
Contributor Author

/pulsarbot run-failure-checks

@poorbarcode
Copy link
Contributor

/pulsarbot run-failure-checks

2 similar comments
@Technoboy-
Copy link
Contributor Author

/pulsarbot run-failure-checks

@Technoboy-
Copy link
Contributor Author

/pulsarbot run-failure-checks

@Technoboy-
Copy link
Contributor Author

/pulsarbot run-failure-checks

touchkey pushed a commit to sajithsebastian/pulsar that referenced this pull request May 24, 2023
touchkey pushed a commit to sajithsebastian/pulsar that referenced this pull request May 26, 2023
@Technoboy- Technoboy- deleted the fix-topic-policy-1 branch November 11, 2023 07:26
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

5 participants