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

Disabled partitions implementation #15141

Merged
merged 12 commits into from
Nov 29, 2023
Merged
17 changes: 17 additions & 0 deletions src/v/cluster/plugin_frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,14 @@ errc plugin_frontend::validator::validate_mutation(const transform_cmd& cmd) {
loggable_string(cmd.value.input_topic.tp()));
return errc::transform_invalid_create;
}
if (_topics->is_fully_disabled(cmd.value.input_topic)) {
vlog(
clusterlog.info,
"attempted to deploy transform {} to a disabled topic {}",
cmd.value.name,
loggable_string(cmd.value.input_topic.tp()));
return errc::transform_invalid_create;
}
if (cmd.value.output_topics.empty()) {
vlog(
clusterlog.info,
Expand Down Expand Up @@ -534,6 +542,15 @@ errc plugin_frontend::validator::validate_mutation(const transform_cmd& cmd) {
out_name.tp);
return errc::transform_invalid_create;
}
if (_topics->is_fully_disabled(out_name)) {
ztlpn marked this conversation as resolved.
Show resolved Hide resolved
vlog(
clusterlog.info,
"attempted to deploy transform {} to write to a disabled "
"topic {}",
cmd.value.name,
loggable_string(out_name.tp()));
return errc::transform_invalid_create;
}
if (would_cause_cycle(cmd.value.input_topic, out_name)) {
vlog(
clusterlog.info,
Expand Down