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

tests(ticdc): add more test for lossy_ddl #9039

Merged
merged 2 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/integration_tests/lossy_ddl/data/prepare.sql
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ ALTER TABLE example18 REORGANIZE PARTITION `p1990to2010` INTO
PARTITION p2020 VALUES LESS THAN (2030),
PARTITION pMax VALUES LESS THAN (MAXVALUE));

CREATE TABLE example19 (a INT NOT NULL PRIMARY KEY);

INSERT INTO example19 VALUES (1);

TRUNCATE example19;

CREATE TABLE `finish_mark`
(
id INT PRIMARY KEY,
Expand Down
4 changes: 2 additions & 2 deletions tests/integration_tests/lossy_ddl/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function check_lossy_ddl() {
row_logs=$(grep "BlackHoleSink: WriteEvents" "$1/cdc.log")
echo $row_logs
row_logs_count=$(grep "BlackHoleSink: WriteEvents" -c "$1/cdc.log")
if [[ "$row_logs_count" -ne 22 ]]; then
echo "can't found 22 row logs, got $row_logs_count"
if [[ "$row_logs_count" -ne 23 ]]; then
echo "can't found 23 row logs, got $row_logs_count"
exit 1
fi
}
Expand Down