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 inconsensus namespace policies by getPoliciesIfCached #20855

Merged
merged 11 commits into from
Jul 25, 2023
Merged

[fix][broker] Fix inconsensus namespace policies by getPoliciesIfCached #20855

merged 11 commits into from
Jul 25, 2023

Conversation

mattisonchao
Copy link
Member

@mattisonchao mattisonchao commented Jul 22, 2023

Motivation

#12339 Change some metadata blocking calls to get from the cache. And then #14154 add the cache expires. It will introduce inconsistent namespace policies problem when the cache is missed.

Modifications

  • Deprecated All of getPoliciesIfCached related logic, then use xxxAsync instead of it.

Verifying this change

  • Make sure that the change passes the CI checks.

Documentation

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

@mattisonchao mattisonchao self-assigned this Jul 22, 2023
@mattisonchao mattisonchao marked this pull request as ready for review July 22, 2023 18:20
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jul 22, 2023
@mattisonchao mattisonchao added this to the 3.2.0 milestone Jul 22, 2023
Copy link
Contributor

@poorbarcode poorbarcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, could you add a test?

@mattisonchao
Copy link
Member Author

Good catch, could you add a test?

#20843 has already added a test to prove the cache problem. we should avoid using this API to get inconsistent namespace policies.

@Technoboy- Technoboy- modified the milestones: 3.2.0, 3.1.0 Jul 25, 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.

None yet

6 participants