Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/1046#discussion_r39453328
--- Diff:
flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamingRuntimeContext.java
---
@@ -91,7 +91,16 @@ public InputSplitProvider getInputSplitProvider() {
public Configuration getTaskStubParameters() {
return new
TaskConfig(env.getTaskConfiguration()).getStubParameters();
}
-
+
+ /**
+ * Returns the job configuration.
+ *
+ * @return The job configuration.
+ */
+ public Configuration getJobConfiguration() {
+ return new Configuration(env.getJobConfiguration());
--- End diff --
The `JobConfiguration` is a system-internal configuration. I am not sure
that it is a good idea to give access to it in the `StreamingRuntimeContext`.
This change will be visible for all DataStream programs.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---