File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/v/kafka/server/handlers/topics Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,8 @@ struct storage_mode_config_validator {
546546 " 'tiered' requires cloud storage to be enabled." ;
547547 static constexpr error_code ec = error_code::invalid_config;
548548
549- static bool is_valid (const creatable_topic& c, features::feature_table*) {
549+ static bool
550+ is_valid (const creatable_topic& c, features::feature_table* ft) {
550551 auto it = std::find_if (
551552 c.configs .begin (),
552553 c.configs .end (),
@@ -566,6 +567,11 @@ struct storage_mode_config_validator {
566567 case model::redpanda_storage_mode::tiered:
567568 return config::shard_local_cfg ().cloud_storage_enabled ();
568569 case model::redpanda_storage_mode::cloud:
570+ if (
571+ ft == nullptr
572+ || !ft->is_active (features::feature::cloud_topics)) {
573+ return false ;
574+ }
569575 return config::shard_local_cfg ().cloud_topics_enabled ();
570576 case model::redpanda_storage_mode::unset:
571577 // unset is always valid - actual behavior depends on
You can’t perform that action at this time.
0 commit comments