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

c/features: Add license checks for schema_id_validation #11389

Conversation

BenPope
Copy link
Member

@BenPope BenPope commented Jun 13, 2023

Add license checks for schema_id_validation

Fixes #11132

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.1.x
  • v22.3.x
  • v22.2.x

Release Notes

  • none

@BenPope BenPope self-assigned this Jun 13, 2023
@BenPope BenPope added the area/schema-registry Schema Registry service within Redpanda label Jun 13, 2023
Copy link
Contributor

@michael-redpanda michael-redpanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@NyaliaLui NyaliaLui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Let CI finish the new test before merge though.

@piyushredpanda piyushredpanda merged commit 83d5455 into redpanda-data:dev Jun 14, 2023
Comment on lines -300 to +313
if (
(fs.get_state() == features::feature_state::state::unavailable
|| fs.get_state() == features::feature_state::state::available)
&& ((fs.spec.available_rule
== features::feature_spec::available_policy::always
&& effective_version >= fs.spec.require_version) || (
fs.spec.available_rule == features::feature_spec::available_policy::new_clusters_only
&&
original_version >= fs.spec.require_version
))) {
if ((fs.get_state() == features::feature_state::state::unavailable ||
fs.get_state() == features::feature_state::state::available) &&
((fs.spec.available_rule ==
features::feature_spec::available_policy::always &&
effective_version >= fs.spec.require_version) ||
(fs.spec.available_rule ==
features::feature_spec::available_policy::new_clusters_only &&
original_version >= fs.spec.require_version))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BenPope @michael-redpanda did this condition change in more ways than formatting? i don't quite trust my mental parsing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda area/schema-registry Schema Registry service within Redpanda
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure nag exists if SSSV is enabled
5 participants