asfgit closed pull request #6593: [hotfix][flink-streaming-java] modify typo in
the StreamingJobGraphGenerator.java
URL: https://github.com/apache/flink/pull/6593
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java
b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java
index e905eac60f1..02bd2039e74 100644
---
a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java
+++
b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java
@@ -130,7 +130,7 @@ private JobGraph createJobGraph() {
jobGraph.setScheduleMode(ScheduleMode.EAGER);
// Generate deterministic hashes for the nodes in order to
identify them across
- // submission iff they didn't change.
+ // submission if they didn't change.
Map<Integer, byte[]> hashes =
defaultStreamGraphHasher.traverseStreamGraphAndGenerateHashes(streamGraph);
// Generate legacy version hashes for backwards compatibility
@@ -440,12 +440,12 @@ private void setVertexConfig(Integer vertexID,
StreamConfig config,
config.setTimeCharacteristic(streamGraph.getEnvironment().getStreamTimeCharacteristic());
- final CheckpointConfig ceckpointCfg =
streamGraph.getCheckpointConfig();
+ final CheckpointConfig checkpointCfg =
streamGraph.getCheckpointConfig();
config.setStateBackend(streamGraph.getStateBackend());
-
config.setCheckpointingEnabled(ceckpointCfg.isCheckpointingEnabled());
- if (ceckpointCfg.isCheckpointingEnabled()) {
-
config.setCheckpointMode(ceckpointCfg.getCheckpointingMode());
+
config.setCheckpointingEnabled(checkpointCfg.isCheckpointingEnabled());
+ if (checkpointCfg.isCheckpointingEnabled()) {
+
config.setCheckpointMode(checkpointCfg.getCheckpointingMode());
}
else {
// the "at-least-once" input handler is slightly
cheaper (in the absence of checkpoints),
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services