pvary commented on code in PR #15042:
URL: https://github.com/apache/iceberg/pull/15042#discussion_r2685882655


##########
flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/TableMaintenance.java:
##########
@@ -226,21 +249,43 @@ public void append() throws IOException {
       try (TableLoader loader = tableLoader.clone()) {
         loader.open();
         String tableName = loader.loadTable().name();
-        DataStream<Trigger> triggers =
-            DataStreamUtils.reinterpretAsKeyedStream(
-                    changeStream(tableName, loader), unused -> true)
-                .process(
-                    new TriggerManager(
-                        loader,
-                        lockFactory,
-                        taskNames,
-                        evaluators,
-                        rateLimit.toMillis(),
-                        lockCheckDelay.toMillis()))
-                .name(TRIGGER_MANAGER_OPERATOR_NAME)
-                .uid(TRIGGER_MANAGER_OPERATOR_NAME + uidSuffix)
-                .slotSharingGroup(slotSharingGroup)
-                .forceNonParallel()
+        DataStream<Trigger> triggers;
+        if (enableCoordinationLock) {

Review Comment:
   Could we merge this 2 cases, and always use the 
`TriggerManagerOperatorFactory` to create the operator?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to