loserwang1024 commented on code in PR #4113: URL: https://github.com/apache/flink-cdc/pull/4113#discussion_r2320626321
########## flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/fetch/PostgresSourceFetchTaskContext.java: ########## @@ -148,8 +148,11 @@ public void configure(SourceSplitBase sourceSplitBase) { dbzConfig .getConfig() .edit() - // never drop slot for stream split, which is also global split - .with(DROP_SLOT_ON_STOP.name(), false) + // When startup.mode='snapshot' drop slot for stream split, + // which is also global split Review Comment: What if a exception is thrown, then job fails. If drop in this case, the job cannot restart! I do think we should do it in org.apache.flink.connector.base.source.reader.SourceReaderBase#onSplitFinished. We should determine whether it's is finished: stream split and endingOffset >= startingOffset -- 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-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org