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

Throw exception for invalid plan name #426

Merged
merged 3 commits into from
Dec 18, 2021

Conversation

sverrehu
Copy link
Contributor

  • Please check if the PR fulfills these requirements
  • The commit messages are descriptive
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • An issue has been created for the pull requests. Some issues might require previous discussion.
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

We have had a couple of incidents where people have misspelled the plan name. JulieOps logs a warning about this and falls back to default configuration. Nobody sees the warning, so the result is incorrectly configured topics that nobody notices before it is too late.

I think it makes no sense to let people specify a plan that does not exist, so this PR will change the warning to an exception.

…rializer.java

Co-authored-by: Aksel Hilde <42339256+akselh@users.noreply.github.com>
@akselh
Copy link
Contributor

akselh commented Dec 17, 2021

Definitively agree! Reference to non-existing plan should fail the pipeline, not just give a warning that will be missed (in reality).

@purbon
Copy link
Collaborator

purbon commented Dec 18, 2021

LGTM

@purbon purbon self-requested a review December 18, 2021 16:50
@purbon purbon merged commit bb20d39 into kafka-ops:master Dec 18, 2021
@sverrehu
Copy link
Contributor Author

Thanks, Pere!

@sverrehu sverrehu deleted the dont-ignore-invalid-plan-name branch March 22, 2023 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants