-
Notifications
You must be signed in to change notification settings - Fork 188
Conversation
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.
rest LGTM
tests/all_mode/run.sh
Outdated
run_sql_source1 "drop table if exists \`all_mode\`.\`tb1\`;" | ||
run_sql_source2 "drop table if exists \`all_mode\`.\`tb2\`;" | ||
run_sql_source2 "drop table if exists \`all_mode\`.\`tb2\`;" | ||
sleep 2 |
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.
how about retry and check downstream table dropped, maybe quicker than 2s
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.
I want to check no error exist.
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.
just want to replace sleep 2s this line 🤣
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.
check log in 5bb5f63
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.
rest LGTM
@@ -2100,8 +2100,6 @@ func (s *Syncer) trackDDL(usedSchema string, sql string, tableNames [][]*filter. | |||
shouldSchemaExist = true | |||
case *ast.DropTableStmt: | |||
shouldExecDDLOnSchemaTracker = true | |||
shouldSchemaExist = true |
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.
Do we need to handle shouldSchemaExist
for case *ast.DropDatabaseStmt
?
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.
We create it if not exist below. But actually no need. Address in 56bf87f
LGTM |
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
cherry pick to release-2.0 in PR #990 |
Co-authored-by: gmhdbjd <[email protected]>
What problem does this PR solve?
close #975
What is changed and how it works?
IF EXIST
for DROP TABLE statement.Tests