-
Notifications
You must be signed in to change notification settings - Fork 56
deps: bump client-go for nextgen shared lock #5203
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
base: release-nextgen-202603
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,9 +14,11 @@ | |
| package mysql | ||
|
|
||
| import ( | ||
| "cmp" | ||
| "context" | ||
| "database/sql" | ||
| "fmt" | ||
| "slices" | ||
| "strings" | ||
| "sync" | ||
| "time" | ||
|
|
@@ -99,6 +101,16 @@ func (w *ProgressTableWriter) Flush(checkpoint uint64) error { | |
| if len(tableNames) == 0 { | ||
| return nil | ||
| } | ||
| // TableSchemaStore stores table names in maps, so the returned order is not | ||
|
Collaborator
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. We don't need a strict order here, so we don't need to make this change.
Author
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. It is used to make the flaky test |
||
| // stable across runs. The progress table is keyed by table identity and the | ||
| // writes are idempotent, but deterministic order keeps batch boundaries and | ||
| // SQL arguments reproducible for tests and debugging. | ||
| slices.SortFunc(tableNames, func(a, b *event.SchemaTableName) int { | ||
| if c := cmp.Compare(a.SchemaName, b.SchemaName); c != 0 { | ||
| return c | ||
| } | ||
| return cmp.Compare(a.TableName, b.TableName) | ||
| }) | ||
|
|
||
| if err := w.initProgressTable(w.ctx); err != nil { | ||
| return err | ||
|
|
||
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.
It looks like this is not the latest client-go commit on the release-nextgen-202603 branch?
Uh oh!
There was an error while loading. Please reload this page.
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.
@wfxr It is desigend to not use the latest one to minialize the change risk for ticdc, the branch https://github.com/tikv/client-go/tree/release-nextgen-202603-ticdc is used