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

do not fail on duplicate relaxed vars #13214

Merged

Conversation

jadami10
Copy link
Contributor

This is a bugfix to enforce unique, relaxed env variables when loading the PinotConfiguration related to #12307.

Our build system adds the same env variable in 2 formats, and the conversion from _ to . formatting in PinotConfiguration::relaxEnvVarName causes an IllegalStateException because the variables end up with the same name. This change effectively enforces we always take the alphabetically sorted first value instead.

This has no impact on existing users since they would have seen exceptions if they were doing this.

@jadami10
Copy link
Contributor Author

sorry for the double ping @t0mpere. Just letting you know I reopened here after some git issues

Copy link
Contributor

@t0mpere t0mpere left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing

@Jackie-Jiang Jackie-Jiang added the Configuration Config changes (addition/deletion/change in behavior) label Jun 10, 2024
Copy link
Contributor

@Jackie-Jiang Jackie-Jiang left a comment

Choose a reason for hiding this comment

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

LGTM!

@Jackie-Jiang Jackie-Jiang merged commit 4969817 into apache:master Jun 10, 2024
36 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Configuration Config changes (addition/deletion/change in behavior)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants