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

ddl_notifier: publish schema change event to store by asyncNotifyEvent #56425

Merged
merged 26 commits into from
Oct 17, 2024

Conversation

fzzf678
Copy link
Contributor

@fzzf678 fzzf678 commented Sep 30, 2024

What problem does this PR solve?

Issue Number: ref #55722

Problem Summary:

What changed and how does it work?

Publish schema change event in asyncNotifyEvent. We need sessionctx.Context to operate system table(not created yet),so we made some functions became woker's method

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

Copy link

ti-chi-bot bot commented Sep 30, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 30, 2024
Copy link

tiprow bot commented Sep 30, 2024

Hi @fzzf678. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@fzzf678 fzzf678 marked this pull request as ready for review October 10, 2024 08:14
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 10, 2024
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 52.63158% with 63 lines in your changes missing coverage. Please review.

Project coverage is 57.1632%. Comparing base (ff317ee) to head (8f90ddd).
Report is 4 commits behind head on master.

Additional details and impacted files
@@                Coverage Diff                @@
##             master     #56425         +/-   ##
=================================================
- Coverage   73.3335%   57.1632%   -16.1704%     
=================================================
  Files          1629       1779        +150     
  Lines        450157     637877     +187720     
=================================================
+ Hits         330116     364631      +34515     
- Misses        99787     248283     +148496     
- Partials      20254      24963       +4709     
Flag Coverage Δ
integration 39.2396% <40.6015%> (?)
unit 72.7093% <49.6240%> (+0.2521%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.9478% <ø> (ø)
parser ∅ <ø> (∅)
br 63.2913% <ø> (+17.7185%) ⬆️

pkg/ddl/ddl.go Outdated Show resolved Hide resolved
pkg/ddl/ddl.go Outdated Show resolved Hide resolved
@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 10, 2024

/retest

Copy link

tiprow bot commented Oct 10, 2024

@fzzf678: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

pkg/ddl/ddl.go Outdated Show resolved Hide resolved
pkg/ddl/ddl.go Outdated Show resolved Hide resolved
pkg/ddl/ddl.go Show resolved Hide resolved
pkg/ddl/notifier/testkit_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

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

rest lgtm

pkg/ddl/ddl.go Show resolved Hide resolved
pkg/ddl/ddl.go Outdated Show resolved Hide resolved
@ti-chi-bot ti-chi-bot bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Oct 15, 2024
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Oct 15, 2024
Copy link

ti-chi-bot bot commented Oct 15, 2024

@fzzf678: GitHub didn't allow me to request PR reviews from the following users: a, look, at, this, please, also, take.

Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @Rustin170506 @time-and-fate @winoros please also take a look at this commit

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Member

@time-and-fate time-and-fate left a comment

Choose a reason for hiding this comment

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

/hold
Feel free to /unhold it if you are ready to merge it.

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 16, 2024
Copy link

ti-chi-bot bot commented Oct 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lance6716, time-and-fate

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added lgtm approved and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Oct 16, 2024
Copy link

ti-chi-bot bot commented Oct 16, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-10-14 02:20:14.059683352 +0000 UTC m=+237611.208593177: ✖️🔁 reset by lance6716.
  • 2024-10-15 07:19:04.232088394 +0000 UTC m=+341941.380998223: ☑️ agreed by lance6716.
  • 2024-10-16 22:14:22.466189914 +0000 UTC m=+482059.615099745: ☑️ agreed by time-and-fate.

@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 17, 2024

/retest

@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 17, 2024

/unhold

@ti-chi-bot ti-chi-bot bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 17, 2024
Copy link

tiprow bot commented Oct 17, 2024

@fzzf678: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 17, 2024

/retest

Copy link

tiprow bot commented Oct 17, 2024

@fzzf678: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 17, 2024

/retest

Copy link

tiprow bot commented Oct 17, 2024

@fzzf678: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@fzzf678
Copy link
Contributor Author

fzzf678 commented Oct 17, 2024

/retest

Copy link

tiprow bot commented Oct 17, 2024

@fzzf678: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot merged commit 1e76e6e into pingcap:master Oct 17, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. sig/planner SIG: Planner size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants