yzeng1618 commented on code in PR #10094:
URL: https://github.com/apache/seatunnel/pull/10094#discussion_r2553844457


##########
seatunnel-core/seatunnel-flink-starter/seatunnel-flink-starter-common/src/main/java/org/apache/seatunnel/core/starter/flink/execution/AbstractFlinkRuntimeEnvironment.java:
##########
@@ -77,21 +77,35 @@ public StreamExecutionEnvironment 
getStreamExecutionEnvironment() {
     }
 
     protected void setCheckpoint() {
-        if (jobMode == JobMode.BATCH) {
-            log.warn(
-                    "Disabled Checkpointing. In flink execution environment, 
checkpointing is not supported and not needed when executing jobs in BATCH 
mode");
-        }
-        long interval;
+        long interval = 10000L;

Review Comment:
   Has been fixed.



##########
seatunnel-core/seatunnel-flink-starter/seatunnel-flink-starter-common/src/main/java/org/apache/seatunnel/core/starter/flink/execution/AbstractFlinkRuntimeEnvironment.java:
##########
@@ -77,21 +77,35 @@ public StreamExecutionEnvironment 
getStreamExecutionEnvironment() {
     }
 
     protected void setCheckpoint() {
-        if (jobMode == JobMode.BATCH) {
-            log.warn(
-                    "Disabled Checkpointing. In flink execution environment, 
checkpointing is not supported and not needed when executing jobs in BATCH 
mode");
-        }
-        long interval;
+        long interval = 10000L;
+        boolean hasExplicitInterval = false;
         if (config.hasPath(EnvCommonOptions.CHECKPOINT_INTERVAL.key())) {
             interval = 
config.getLong(EnvCommonOptions.CHECKPOINT_INTERVAL.key());
+            hasExplicitInterval = true;
         } else if (config.hasPath(ConfigKeyName.CHECKPOINT_INTERVAL)) {

Review Comment:
   Has been fixed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to