-
Notifications
You must be signed in to change notification settings - Fork 287
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
tracker(dm): close and recreate tracker when pause and resume #5350
Merged
Merged
Changes from 50 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
4775a7e
--wip-- [skip ci]
lance6716 c2f54f4
change unistore settings
lance6716 134bd55
add IT
lance6716 4c3ba73
reset schema tracker every time
lance6716 9516171
try fix panic
lance6716 6f42039
fix IT
lance6716 a6999c2
Merge branch 'master' of github.com:pingcap/ticdc into fix-unistore-u…
lance6716 d557967
save work
lance6716 f0d406b
make fmt
lance6716 6493a50
fix CI
lance6716 ba10208
try fix UT
lance6716 350d7f4
try fix CI
lance6716 5e982fb
refine mock order
lance6716 021b6f1
fix mock
lance6716 91784c8
fix IT
lance6716 39a326a
change logic for operate-schema
lance6716 9b3ef6f
fix some tests
lance6716 083b2d6
make fmt
lance6716 b5a52d4
fix test
lance6716 8ec1050
fix terror
lance6716 5023e04
Merge branch 'fix-unistore-usage' of github.com:lance6716/ticdc into …
lance6716 04e1ae9
change syncer prepare logic order
lance6716 6f30b8f
Merge branch 'master' of github.com:pingcap/ticdc into fix-unistore-u…
lance6716 e5ce635
try fix CI
lance6716 83235ed
try fix CI
lance6716 0913117
fix again
lance6716 e6a383b
Merge branch 'master' into fix-unistore-usage
lance6716 0f3f03a
weaken the test checking pattern
lance6716 bbed995
fix again
lance6716 5170b1c
fix again
lance6716 165e93d
fix test in a new day
lance6716 7de53ce
fix matching pattern
lance6716 b485b00
try another API
lance6716 5ae3a50
fix again
lance6716 0f3ae52
some fix
lance6716 a831a1f
Merge branch 'master' of github.com:pingcap/tiflow into fix-unistore-…
lance6716 7c6ff83
increase check_sync_diff retry
lance6716 878bae3
Merge branch 'master' into fix-unistore-usage
lance6716 6ca219a
fix again...
lance6716 4d76b6d
Merge branch 'fix-unistore-usage' of github.com:lance6716/ticdc into …
lance6716 6b72a40
add retryable error
lance6716 0d0f63a
fix openapi test
lance6716 1a7ef75
fix another test
lance6716 3e2ee06
fix another unstable test
lance6716 9b1c435
fix lint
lance6716 884a0a7
Merge branch 'master' into fix-unistore-usage
lance6716 5d69b01
Merge branch 'fix-unistore-usage' of github.com:lance6716/ticdc into …
lance6716 7b0e7d6
fix comment
lance6716 787c11c
fix unstable CI
lance6716 6195c35
fix another unstable test
lance6716 5be2376
address comment
lance6716 983b24c
fix unstable test
lance6716 247297f
Merge branch 'master' into fix-unistore-usage
ti-chi-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -671,3 +671,10 @@ func GetMaxConnectionsForConn(ctx context.Context, conn *sql.Conn) (int, error) | |
func IsMariaDB(version string) bool { | ||
return strings.Contains(strings.ToUpper(version), "MARIADB") | ||
} | ||
|
||
// CreateTableSQLToOneRow formats the result of SHOW CREATE TABLE to one row. | ||
func CreateTableSQLToOneRow(sql string) string { | ||
sql = strings.ReplaceAll(sql, "\n", "") | ||
sql = strings.ReplaceAll(sql, " ", " ") | ||
Comment on lines
+677
to
+678
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what if there are column defaults contains those char. seems only used in get schema, ok for now. |
||
return sql | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 remove
tr.storePath
before we start? I'm afraid an ungraceful stop may not remove the storage path.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.
TempDir will return a newly created folder by appending suffix
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.
Oh user may need to manually clean it to release disk space. Hope it's not occupy large space.