Github user StephanEwen commented on a diff in the pull request:
https://github.com/apache/flink/pull/1341#discussion_r44529482
--- Diff:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/StreamingRuntimeContext.java
---
@@ -173,4 +174,12 @@ public void registerTimer(long time, Triggerable
target) {
}
}
}
+
+ /**
+ * Returns true if checkpointing is enabled for the running job.
+ * @return true if checkpointing is enabled.
+ */
+ public boolean isCheckpointingEnabled() {
+ return
taskEnvironment.getTaskConfiguration().getBoolean(StreamConfig.CHECKPOINTING_ENABLED,
false);
--- End diff --
That breaks the way that config values are accessed. The right way is
`new
StreamConfig(taskEnvironment.getTaskConfiguration()).isCheckpointingEnabled()`.
Then you also need not change the visibility of the flag.
---
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.
---