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

Provide an accurate error message when set autoTopicCreation #14684

Merged
merged 10 commits into from
Mar 17, 2022
Prev Previous commit
Next Next commit
Fix checkstyle
  • Loading branch information
mattisonchao committed Mar 15, 2022
commit 7921416029aa54f092d1682be0c7a43007760d0c
Original file line number Diff line number Diff line change
Expand Up @@ -832,10 +832,10 @@ protected void internalSetAutoTopicCreation(AsyncResponse asyncResponse,
if (autoTopicCreationOverride != null) {
if (!AutoTopicCreationOverrideImpl.isValidOverride(autoTopicCreationOverride)) {
// To enhance error tolerance, automatic error correction
if(!autoTopicCreationOverride.autoFix()) {
if (!autoTopicCreationOverride.autoFix()) {
throw new RestException(Status.PRECONDITION_FAILED,
"Invalid configuration for autoTopicCreationOverride");
};
}
}
if (maxPartitions > 0 && autoTopicCreationOverride.getDefaultNumPartitions() > maxPartitions) {
throw new RestException(Status.NOT_ACCEPTABLE,
Expand Down