nzw921rx commented on code in PR #13715:
URL: https://github.com/apache/seatunnel/pull/13715#discussion_r4739303504


##########
seatunnel-engine/seatunnel-engine-core/src/main/java/org/apache/seatunnel/engine/core/parse/MultipleTableJobConfigParser.java:
##########
@@ -206,8 +207,10 @@ public MultipleTableJobConfigParser(
         this.jobConfig = jobConfig;
         this.commonPluginJars = commonPluginJars;
         this.isStartWithSavePoint = isStartWithSavePoint;
-        this.seaTunnelJobConfig = handleDataSource(seaTunnelJobConfig, 
metaDataConfig);
         this.envOptions = 
ReadonlyConfig.fromConfig(seaTunnelJobConfig.getConfig("env"));
+        // Reject invalid timer settings before planning can execute 
client-side sink save modes.
+        TimerFlushWindow.fromEnv(envOptions.getSourceMap());

Review Comment:
   I think we should define the validation rules for `sink.flush.window` in 
`EnvOptionRule` and apply them to the effective job configuration on every 
submission path. Then we can remove the `fromEnv()` calls used solely for 
validation in `MultipleTableJobConfigParser` and `CoordinatorService`, and 
construct a `TimerFlushWindow` only where it’s needed.
   @goutamadwant 



-- 
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