ruanhang1993 commented on code in PR #4311:
URL: https://github.com/apache/flink-cdc/pull/4311#discussion_r2958393853
##########
flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/org/apache/flink/cdc/connectors/mysql/debezium/reader/SnapshotSplitReader.java:
##########
@@ -154,6 +154,7 @@ public void submitSplit(MySqlSplit mySqlSplit) {
() -> {
try {
currentTaskRunning = true;
+ changeEventSourceContext.startChangeEventSource();
Review Comment:
Since there is a `stopCurrentTask` method, should we add a corresponding
`startCurrentTask` method to encapsulate this logic?
```java
private void startCurrentTask() {
currentTaskRunning = true;
changeEventSourceContext.startChangeEventSource();
}
````
--
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]