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
[FLINK-33988][configuration] Fix the invalid configuration when using initialized root logger level on yarn deployment mode #24042
Conversation
09af1b6
to
ff31448
Compare
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.
Thanks @RocMarshal for the fix!
Flink does not support modifying the logger level only in yarn mode, right?
- If yes, the solution may be right.
- If flink on k8s doesn't support modifying the logger level as well. Current solution doesn't make sense to me.
Hi @1996fanrui, I've verified that the current release of Flink supports modifying the logger level in both Native K8s and Standalone mode. Since YARN prepares the container launching context in a special way, we'll need to do some special adaptation anyway. LGTM |
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.
Thanks @RocMarshal for the fix and @X-czh for the double-check!
@RocMarshal , could you rebase the master branch?
LGTM assuming the CI is green.
Thanks @X-czh for the double-check and @1996fanrui review. I made a fix like the env-value passing-in at RocMarshal@624c199 Would we merge the additional fix into the current pr ? |
Same PR is fine for me, but separate JIRA and commits are necessary. Separate JIRA and commits are easy to follow up and cherry pick for other users. |
ff31448
to
463ee6b
Compare
Configuration config, | ||
ConfigOption<T> configOption, | ||
String envKey, | ||
Function<T, Boolean> validator) { |
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.
As I understand, this validator
wanna check whether the value of configOption
in config is legal.
- If it's legal, we can add the env
- If it's illegal, we will ignore.
Is my understanding right?
If right, I don't think we should do this check here. I mean we should cover Flink on Kubernetes if we wanna check whether it's legal. So check them in the yarn side doesn't make sense to me.
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.
In general, we check the option value only once. And all callers or users don't need to care about whether it's legal.
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.
Hi, @1996fanrui Thanks for your quick-review~
Is my understanding right?
Yes.
I have to admit that I didn't consider compatibility with on k8s from the beginning.
This is a trade-off between robustness and redundancy check for me.
To be honest, I would prefer to remove this validation here. 😭
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.
Removing is fine for me, the code will get clearer here.
… initialized root logger level on yarn deployment mode
… 'env.log.max' on yarn deployment mode
463ee6b
to
a746744
Compare
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.
LGTM assuming the CI is green.
What is the purpose of the change
Fix the invalid configuration when using initialized root logger level on yarn deployment mode
Brief change log
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation