Re:Re: What does setExecutionConfig(new ExecutionConfig()) in the constructor of JobGraph for?

2021-03-26 Thread ZhangWei
Hi Chesnay: If the server side expects the serialized execution config never be null, I think it just equals that we must setExecutionConfig somewhere either in the constructor or after the jobGraph has been instantiated at least once. The current implementation sets ExecutionConfig in the constr

Re: What does setExecutionConfig(new ExecutionConfig()) in the constructor of JobGraph for?

2021-03-26 Thread Chesnay Schepler
It just initializes the field to ensure it is set when it is deserialized server-side. There is neither a guarantee nor requirement that the APIs must set the ExecutionConfig at least once, so this ensures that on the server-side the execution config is never null. On 3/26/2021 11:18 AM, Zhang

What does setExecutionConfig(new ExecutionConfig()) in the constructor of JobGraph for?

2021-03-26 Thread ZhangWei
Hello: I was recently study the code about how the JobGraph generates. I noticed in the constructor of StreamingJobGraphGenerator, it constructs a JobGraph. And in the constructor of JobGraph, it called setExecutionConfig(new ExecutionConfig()) which serialized a default ExecutionConfig. T