-
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 Broker was failing to create producer with broken schema ledger #23395
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23395 +/- ##
============================================
+ Coverage 73.57% 74.59% +1.02%
- Complexity 32624 34047 +1423
============================================
Files 1877 1936 +59
Lines 139502 145368 +5866
Branches 15299 15895 +596
============================================
+ Hits 102638 108439 +5801
+ Misses 28908 28623 -285
- Partials 7956 8306 +350
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I am also adding email thread reply here
We must not revert this PR and broker must not allow topic unavailability in any cases and we can't rely on manual operational efforts to fix any topic server side issue |
Answered in discussion channel, we should do this. User can delete the broken schemas manually when they received such error if they wanted
Do you know the risk of this PR before you approved it? Could you join this discussion and throw your point? |
First of all user can't delete ledgers from the metadata store as ledger concept has to be abstract to user. System admin may be able to delete such ledgers but that is not possible for the systems which is running millions of topics and this issue is happening with multiple ledgers at the same time and manual efforts are not possible to address this issue. |
created PR: #23428 it will switch back to previous behavior unless force-flag is configured and ledger error is non-recoverable. |
Motivation
When schema ledger is broken and producer tries to connect without schema then broker fails to add that producer with below error.
It fixes below errors
Modifications
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: