Skip to content

[mysql] more logs and some changes in ctx handling#2988

Merged
heavycrystal merged 4 commits into
mainfrom
feat/mysql-ctx-tuning
May 30, 2025
Merged

[mysql] more logs and some changes in ctx handling#2988
heavycrystal merged 4 commits into
mainfrom
feat/mysql-ctx-tuning

Conversation

@heavycrystal

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances logging around timeout handling in PullRecords and refactors column lookup for CDC events.

  • Introduces an overtime flag to defer timeout exit until after a transaction ends, with adjusted context resets and logging.
  • Replaces manual loop for finding schema columns with slices.IndexFunc for clearer lookup logic.
Comments suppressed due to low confidence (1)

flow/connectors/mysql/cdc.go:346

  • [nitpick] The variable name overtime is ambiguous; consider renaming it to something more descriptive like txTimeoutTriggered to clarify its purpose.
// set when a tx is preventing us from respecting the timeout, immediately exit after we see inTx false

Comment thread flow/connectors/mysql/cdc.go Outdated
Comment thread flow/connectors/mysql/cdc.go Outdated
Comment thread flow/connectors/mysql/cdc.go Outdated
@heavycrystal

Copy link
Copy Markdown
Contributor Author

not sure how to fix lints

Comment thread flow/connectors/mysql/cdc.go Outdated
Comment thread flow/connectors/mysql/cdc.go Outdated
@heavycrystal heavycrystal force-pushed the feat/mysql-ctx-tuning branch from c70d405 to e714af0 Compare May 30, 2025 07:12
@heavycrystal heavycrystal merged commit e65a039 into main May 30, 2025
9 checks passed
@heavycrystal heavycrystal deleted the feat/mysql-ctx-tuning branch May 30, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants