-
Notifications
You must be signed in to change notification settings - Fork 498
[FLINK-37748][Kubernetes Operator]Remove JDK only JVM arguments from Flink operator Helm chart #975
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
Conversation
|
These were added to improve java 17 compatibility for Flink apps, will this affect that? If so having the warnings doesn't seem like a big deal |
It should not affect it, especially if the apps are running in JRE environment. When running in JRE, these options are not taken into account at all, they simply do not exist in those environments. P.S. The operator image itself is running in JRE environment |
This is about the Flink jobs, and the question is whether these params make Java 17 compatibility better in JDK env. If they do we should keep that and accept the warning as that doesn't hurt |
|
It doesn't make the compatibility better, since Flink jobs do not require compiler modules. In case of very specific applications that for some reason would need to access the javac compiler and it's modules, users could specify that in |
|
Makes sense @ekazakas thanks for the explanation :) Let's try this |
| # These parameters are required for Java 17 support. | ||
| # These should be kept in-sync with the flink dist env.java.opts.all defaults (for the given flink version) in: flink-dist/src/main/resources/config.yaml | ||
| # Flink 1.18 uses env.java.opts.all, if a user supplies their own version of these opts in their FlinkDeployment the options below will be overridden. | ||
| # env.java.default-opts.all is used for 1.19 onwards so users can supply their own opts.all in their Job deployments and have these appended. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see in the comment above that the below content should be kept in sync with flink-dist/src/main/resources/config.yaml.
I suggest that we amend the comment - as it will no longer be true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed this comment
|
@gyfora we good to merge this? |
|
Thanks for the reminder @ferenc-csaky , merging |
What is the purpose of the change
There is an issue with Flink Kubernetes operator where JVM reports unrecognized options. These options are:
The above are only valid in JDK environments. When running in JRE environments, where most of the Flink applications will be running, the VM reports the following warnings:
Brief change log
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
CustomResourceDescriptors: noDocumentation