You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "MOBIN-F (via GitHub)" <gi...@apache.org> on 2025/06/05 10:35:18 UTC
Re: [PR] [FLINK-37860][pipeline-connector/paimon]Fix Committer.createContext not passing OperatorStateStore correctly [flink-cdc]
MOBIN-F commented on code in PR #4029:
URL: https://github.com/apache/flink-cdc/pull/4029#discussion_r2128524947
##########
flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-paimon/src/main/java/org/apache/flink/cdc/connectors/paimon/sink/v2/PreCommitOperator.java:
##########
@@ -140,4 +147,9 @@ public void close() throws Exception {
storeMultiCommitter.close();
}
}
+
+ @Override
+ public void endInput() throws Exception {
+ commitUpToCheckpoint(Long.MAX_VALUE);
+ }
Review Comment:
When using flink batch mode and bounded stream, the endInput method of BoundedOneInput is needed to drive commit.
In the test case, env.fromCollection(events, TypeInformation.of(Event.class) returns a bounded stream. When the data ends, endInput() is called to generate a paimon snapshot.
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org