-
Notifications
You must be signed in to change notification settings - Fork 589
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 validation of replication factor changes across APIs #13442
Comments
From the above list, the only place that performs validation across all the configs is
I believe all of these items should also be included as validation for items 2 & 3 above. |
In this ticket #13422 it is reported that alter topic config allows replication factor to be changed to 2. It may be the case that this does not take affect, but no error is returned, and the change should probably be rejected as it is when requesting replication factor 2 when creating topics.
There are 4 places where validation may take place:
To some extent the controller should have the final say in the matter, but we still do validation in some cases at the kafka layer for simplicity.
This ticket should cover:
It is tempting to unify the validation across at least locations 1-3, but that might turn into a larger project. The validation in create topics api is simple, but it appears that validation in alter/incremental-alter is far more complicated and nuanced.
Additional context https://redpandadata.slack.com/archives/C01ND4SVB6Z/p1694596910870699?thread_ts=1694596910.870699&cid=C01ND4SVB6Z
The text was updated successfully, but these errors were encountered: