-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[FLINK-37739][cli] fix flink-conf is not obtained in local mode #4006
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
base: master
Are you sure you want to change the base?
[FLINK-37739][cli] fix flink-conf is not obtained in local mode #4006
Conversation
public static FlinkPipelineComposer ofMiniCluster() { | ||
return new FlinkPipelineComposer( | ||
StreamExecutionEnvironment.getExecutionEnvironment(), 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.
Is it still necessary to keep this method?
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.
There are still many test cases that use this method. Since they do not use flinkConf and additionalJars, I chose to keep this method.
@VisibleForTesting | ||
public StreamExecutionEnvironment getEnv() { | ||
return env; | ||
} |
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.
Would it be possible to use Java reflection in the test to obtain this object, instead of creating a separate method for it?
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.
Reflection makes code difficult to maintain
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.
Can we add test coverage to e2e test?
current local mode lacks loading additionalJars and flinkConf

Local mode is convenient for development and debug