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-8212] [network] Pull EnvironmentInformation out of TaskManager… #5458
Conversation
1e744b0
to
cb593fc
Compare
@tillrohrmann I updated the code. Could you take a look ? Thanks ~ |
private static MemoryManager createMemoryManager(TaskManagerServicesConfiguration taskManagerServicesConfiguration) throws Exception { | ||
private static MemoryManager createMemoryManager(TaskManagerServicesConfiguration taskManagerServicesConfiguration, | ||
long freeHeapMemoryWithDefrag, | ||
long maxJvmHeapMemory) throws Exception { |
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.
The convention is to break parameter lists like
public void a(
A a,
B b) {
// foobar
}
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.
Will fix ~
* | ||
* @return memory to use for network buffers (in bytes) | ||
*/ | ||
public static long calculateNetworkBufferMemory(TaskManagerServicesConfiguration tmConfig) { | ||
public static long calculateNetworkBufferMemory(TaskManagerServicesConfiguration tmConfig, | ||
long maxJvmHeapMemory) { |
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.
Same here with the parameters
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.
Will fix ~
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.
Changes look good to me @zhangminglei. Thanks for your contribution @zhangminglei. Merging this PR.
…Services This closes apache#5458.
What is the purpose of the change
Pull EnvironmentInformation out of TaskManagerServices
Brief change log
Add the required information to
fromConfiguration
method inTaskManagerRunner.java
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation