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

Align feature manager's logical versions with v22.1.5 #5481

Merged
merged 1 commit into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/v/cluster/feature_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ std::string_view to_string_view(feature f) {
return "maintenance_mode";
case feature::mtls_authentication:
return "mtls_authentication";
case feature::rm_stm_kafka_cache:
return "rm_stm_kafka_cache";
case feature::serde_raft_0:
return "serde_raft_0";
case feature::license:
return "license";
case feature::rm_stm_kafka_cache:
return "rm_stm_kafka_cache";
case feature::test_alpha:
return "__test_alpha";
}
Expand Down
20 changes: 10 additions & 10 deletions src/v/cluster/feature_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ enum class feature : std::uint64_t {
consumer_offsets = 0x2,
maintenance_mode = 0x4,
mtls_authentication = 0x8,
serde_raft_0 = 0x10,
license = 0x20,
rm_stm_kafka_cache = 0x40,
rm_stm_kafka_cache = 0x10,
serde_raft_0 = 0x20,
license = 0x40,

// Dummy features for testing only
test_alpha = uint64_t(1) << 63,
Expand Down Expand Up @@ -106,20 +106,20 @@ constexpr static std::array feature_schema{
feature_spec::prepare_policy::always},
feature_spec{
cluster_version{4},
"serde_raft_0",
feature::serde_raft_0,
"rm_stm_kafka_cache",
feature::rm_stm_kafka_cache,
feature_spec::available_policy::always,
feature_spec::prepare_policy::always},
feature_spec{
cluster_version{4},
"license",
feature::license,
cluster_version{5},
"serde_raft_0",
feature::serde_raft_0,
feature_spec::available_policy::always,
feature_spec::prepare_policy::always},
feature_spec{
cluster_version{5},
"rm_stm_kafka_cache",
feature::rm_stm_kafka_cache,
"license",
feature::license,
feature_spec::available_policy::always,
feature_spec::prepare_policy::always},
feature_spec{
Expand Down