-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker] Allow intermittent error from topic policies service when loading topics #24829
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] Allow intermittent error from topic policies service when loading topics #24829
Conversation
…en loading topics
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24829 +/- ##
=============================================
+ Coverage 38.45% 74.26% +35.80%
- Complexity 13176 33411 +20235
=============================================
Files 1855 1912 +57
Lines 144926 149090 +4164
Branches 16814 17300 +486
=============================================
+ Hits 55735 110719 +54984
+ Misses 81668 29543 -52125
- Partials 7523 8828 +1305
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@BewareMyPower Please handle cherry-picking to branch-4.0 since there are some merge conflicts. It seems that merge conflicts are due to lack of PR #24118 in branch-4.0 (as per https://lists.apache.org/thread/llobypz1nc9w6wdnwd3z1h52z7bygdby). |
…en loading topics (apache#24829) (cherry picked from commit 7b6f9fc) (cherry picked from commit dd149d4)
|
@BewareMyPower In branch-4.0, The test |
…en loading topics (apache#24829) (cherry picked from commit 7b6f9fc) (cherry picked from commit dd149d4)
Motivation
#24785 introduces a regression that when topic policies service failed to get topic policies, the topic future will still not be done, as well as not removed from the cache.
Modifications
Fix the regression and add
testGetTopicWhenTopicPoliciesFailto prevent possible regressions.Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: