-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[FLINK-38265] Stream Split shouldn't finish when exception occors but met END Watermark. #4101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… met END Watermark.
52b08c1 to
b63e49b
Compare
yuxiqian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for @loserwang1024's nice contribution, just left some comments.
I wonder why we need to modify the public API in incremental API (adding the Future<?> thing), as changes in StreamSplitReader#poolSplitRecords() would suffice. Is it for the test purposes only?
...-base/src/main/java/org/apache/flink/cdc/connectors/base/source/reader/external/Fetcher.java
Outdated
Show resolved
Hide resolved
...rg/apache/flink/cdc/connectors/base/source/reader/external/IncrementalSourceScanFetcher.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/apache/flink/cdc/connectors/mysql/debezium/reader/BinlogSplitReaderTest.java
Outdated
Show resolved
Hide resolved
...test/java/org/apache/flink/cdc/connectors/mysql/source/MySqlTableIdCaseInsensitveITCase.java
Outdated
Show resolved
Hide resolved
...rg/apache/flink/cdc/connectors/base/source/reader/external/IncrementalSourceScanFetcher.java
Outdated
Show resolved
Hide resolved
...c/src/main/java/org/apache/flink/cdc/connectors/mysql/debezium/reader/BinlogSplitReader.java
Show resolved
Hide resolved
@yuxiqian remove future api now. |
Seems we can revert all changes in |
yuxiqian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for @loserwang1024's nice work!
lvyanquan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
As shown in https://issues.apache.org/jira/browse/FLINK-38265
When I read Postgres cdc's WAL log, there is no data suddenly. The log show that the stream split is finished when some connection exception occurs:
The reason is as follows:
Thus, we should not stop the task until receiving End Watermark.