Skip to content
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

[Bug][CDC] Fix state recovery error when switching a single table to multiple tables #5784

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

hailin0
Copy link
Member

@hailin0 hailin0 commented Nov 3, 2023

Purpose of this pull request

[CDC] Fix state recovery error when switching a single table to multiple tables

Does this PR introduce any user-facing change?

No

How was this patch tested?

https://github.com/apache/seatunnel/blob/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e/src/test/java/org/apache/seatunnel/connectors/seatunnel/cdc/mysql/MysqlCDCIT.java#L290

Check list

ruanwenjun
ruanwenjun previously approved these changes Nov 3, 2023
Copy link
Member

@ruanwenjun ruanwenjun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hisoka-X
Copy link
Member

Hisoka-X commented Nov 3, 2023

Could you add a test case to assert to state of savepoint?

@hailin0
Copy link
Member Author

hailin0 commented Nov 3, 2023

image

log.info("******************container logs start******************");
String containerLogs = container.getServerLogs();
log.info(containerLogs);
Assertions.assertFalse(containerLogs.contains("ERROR"));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add assert

@hailin0 hailin0 closed this Nov 3, 2023
@hailin0 hailin0 reopened this Nov 3, 2023
@hailin0 hailin0 closed this Nov 3, 2023
@hailin0 hailin0 reopened this Nov 3, 2023
@hailin0 hailin0 force-pushed the dev-fix-cdc-restore branch 3 times, most recently from 373a5c3 to 27588aa Compare November 6, 2023 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants