[
https://issues.apache.org/jira/browse/FLINK-3327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15147500#comment-15147500
]
ASF GitHub Bot commented on FLINK-3327:
---------------------------------------
Github user zentol commented on a diff in the pull request:
https://github.com/apache/flink/pull/1583#discussion_r52912601
--- Diff:
flink-streaming-java/src/test/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGeneratorTest.java
---
@@ -75,16 +75,22 @@ public void testExecutionConfigSerialization() throws
IOException, ClassNotFound
config.disableSysoutLogging();
}
config.setParallelism(dop);
-
+
JobGraph jobGraph = compiler.createJobGraph("test");
-
+
+ final String exec_config_key = "runtime.config";
+
+
InstantiationUtil.writeObjectToConfig(jobGraph.getExecutionConfig(),
+ jobGraph.getJobConfiguration(),
+ exec_config_key);
+
ExecutionConfig executionConfig =
InstantiationUtil.readObjectFromConfig(
jobGraph.getJobConfiguration(),
- ExecutionConfig.CONFIG_KEY,
+ exec_config_key,
Thread.currentThread().getContextClassLoader());
-
+
assertNotNull(executionConfig);
-
--- End diff --
this class contains a relatively high number of pure formatting changes.
> Attach the ExecutionConfig to the JobGraph and make it accessible to the
> AbstractInvocable.
> -------------------------------------------------------------------------------------------
>
> Key: FLINK-3327
> URL: https://issues.apache.org/jira/browse/FLINK-3327
> Project: Flink
> Issue Type: Sub-task
> Components: TaskManager
> Reporter: Klou
> Assignee: Klou
> Fix For: 1.0.0
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)