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: arg v2 for modify column and multi schema change #56536

Merged
merged 29 commits into from
Oct 16, 2024

Conversation

joechenrh
Copy link
Contributor

@joechenrh joechenrh commented Oct 10, 2024

What problem does this PR solve?

Issue Number: ref #54436

Problem Summary:

What changed and how does it work?

Refactor args for Modify Columns.

Since all job arguments are refactored, multi schema change will be refactored in this PR too.

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

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 10, 2024
Copy link

tiprow bot commented Oct 10, 2024

Hi @joechenrh. 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.

Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 90.15544% with 19 lines in your changes missing coverage. Please review.

Project coverage is 57.1304%. Comparing base (aade0ee) to head (a023ee6).
Report is 9 commits behind head on master.

Additional details and impacted files
@@                Coverage Diff                @@
##             master     #56536         +/-   ##
=================================================
- Coverage   73.4169%   57.1304%   -16.2866%     
=================================================
  Files          1629       1778        +149     
  Lines        450073     638238     +188165     
=================================================
+ Hits         330430     364628      +34198     
- Misses        99369     248653     +149284     
- Partials      20274      24957       +4683     
Flag Coverage Δ
integration 39.2143% <69.9481%> (?)
unit 72.5296% <89.6373%> (-0.0187%) ⬇️

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

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

@joechenrh
Copy link
Contributor Author

/retest

Copy link

tiprow bot commented Oct 10, 2024

@joechenrh: 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.

@joechenrh
Copy link
Contributor Author

/retest-required

Copy link

tiprow bot commented Oct 10, 2024

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

In response to this:

/retest-required

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.

@joechenrh
Copy link
Contributor Author

/retest

Copy link

tiprow bot commented Oct 10, 2024

@joechenrh: 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.

Copy link
Contributor

@D3Hunter D3Hunter left a comment

Choose a reason for hiding this comment

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

seems this pr need to change, as we have merged the args inside #56130, will review after that

@joechenrh joechenrh changed the title ddl: arg v2 for modify column ddl: arg v2 for modify column and multi schema change Oct 14, 2024
@ti-chi-bot ti-chi-bot bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 14, 2024
@ti-chi-bot ti-chi-bot bot removed the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 14, 2024
Copy link

ti-chi-bot bot commented Oct 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: D3Hunter, wjhuang2016

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 and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Oct 15, 2024
Copy link

ti-chi-bot bot commented Oct 15, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-10-15 09:24:13.804059134 +0000 UTC m=+349450.952968966: ☑️ agreed by D3Hunter.
  • 2024-10-15 09:42:01.097465037 +0000 UTC m=+350518.246374869: ☑️ agreed by wjhuang2016.

@D3Hunter
Copy link
Contributor

/retest

Copy link

tiprow bot commented Oct 15, 2024

@D3Hunter: 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.

@joechenrh
Copy link
Contributor Author

/retest

Copy link

tiprow bot commented Oct 15, 2024

@joechenrh: 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.

@D3Hunter
Copy link
Contributor

panics

[2024/10/15 09:57:53.538 +00:00] [ERROR] [misc.go:115] ["panic in the recoverable goroutine"] [label=ddl] [funcInfo=submitLoop] [r="runtime error: invalid memory address or nil pointer dereference"] [stack="github.com/pingcap/tidb/pkg/util.Recover
  pkg/util/misc.go:119
runtime.gopanic
  GOROOT/src/runtime/panic.go:785
runtime.panicmem
  GOROOT/src/runtime/panic.go:262
runtime.sigpanic
  GOROOT/src/runtime/signal_unix.go:900
github.com/pingcap/tidb/pkg/meta/model.(*Job).FillArgs
  pkg/meta/model/job.go:489
github.com/pingcap/tidb/pkg/ddl.(*JobWrapper).FillArgsWithSubJobs
  pkg/ddl/ddl.go:239
github.com/pingcap/tidb/pkg/ddl.insertDDLJobs2Table
  pkg/ddl/job_submitter.go:686
github.com/pingcap/tidb/pkg/ddl.(*JobSubmitter).GenGIDAndInsertJobsWithRetry.func1
  pkg/ddl/job_submitter.go:444
github.com/pingcap/tidb/pkg/ddl.genGIDAndCallWithRetry.func1
  pkg/ddl/job_submitter.go:614
github.com/pingcap/tidb/pkg/ddl.genGIDAndCallWithRetry
  pkg/ddl/job_submitter.go:618
github.com/pingcap/tidb/pkg/ddl.(*JobSubmitter).GenGIDAndInsertJobsWithRetry
  pkg/ddl/job_submitter.go:424
github.com/pingcap/tidb/pkg/ddl.(*JobSubmitter).addBatchDDLJobs2Table
  pkg/ddl/job_submitter.go:351
github.com/pingcap/tidb/pkg/ddl.(*JobSubmitter).addBatchDDLJobs
  pkg/ddl/job_submitter.go:119
github.com/pingcap/tidb/pkg/ddl.(*JobSubmitter).submitLoop
  pkg/ddl/job_submitter.go:93
github.com/pingcap/tidb/pkg/ddl.(*ddl).Start.func1
  pkg/ddl/ddl.go:735
github.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1
  pkg/util/wait_group_wrapper.go:157"] [stack="github.com/pingcap/tidb/pkg/util.Recover
  pkg/util/misc.go:115
runtime.gopanic
  GOROOT/src/runtime/panic.go:785
runtime.panicmem
  GOROOT/src/runtime/panic.go:262
runtime.sigpanic
  GOROOT/src/runtime/signal_unix.go:900
github.com/pingcap/tidb/pkg/meta/model.(*Job).FillArgs
  pkg/meta/model/job.go:489
github.com/pingcap/tidb/pkg/ddl.(*JobWrapper).FillArgsWithSubJobs
  pkg/ddl/ddl.go:239
github.com/pingcap/tidb/pkg/ddl.insertDDLJobs2Table
  pkg/ddl/job_submitter.go:686
github.com/pingcap/tidb/pkg/ddl.(*JobSubmitter).GenGIDAndInsertJobsWithRetry.func1
  pkg/ddl/job_submitter.go:444
github.com/pingcap/tidb/pkg/ddl.genGIDAndCallWithRetry.func1
  pkg/ddl/job_submitter.go:614
github.com/pingcap/tidb/pkg/ddl.genGIDAndCallWithRetry
  pkg/ddl/job_submitter.go:618
github.com/pingcap/tidb/pkg/ddl.(*JobSubmitter).GenGIDAndInsertJobsWithRetry
  pkg/ddl/job_submitter.go:424
github.com/pingcap/tidb/pkg/ddl.(*JobSubmitter).addBatchDDLJobs2Table
  pkg/ddl/job_submitter.go:351
github.com/pingcap/tidb/pkg/ddl.(*JobSubmitter).addBatchDDLJobs
  pkg/ddl/job_submitter.go:119
github.com/pingcap/tidb/pkg/ddl.(*JobSubmitter).submitLoop
  pkg/ddl/job_submitter.go:93
github.com/pingcap/tidb/pkg/ddl.(*ddl).Start.func1
  pkg/ddl/ddl.go:735
github.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1
  pkg/util/wait_group_wrapper.go:157"]

@joechenrh
Copy link
Contributor Author

/retest

Copy link

tiprow bot commented Oct 15, 2024

@joechenrh: 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.

@joechenrh
Copy link
Contributor Author

/retest

Copy link

tiprow bot commented Oct 16, 2024

@joechenrh: 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.

@joechenrh
Copy link
Contributor Author

/ok-to-test

@ti-chi-bot ti-chi-bot bot added the ok-to-test Indicates a PR is ready to be tested. label Oct 16, 2024
@D3Hunter
Copy link
Contributor

/retest

4 similar comments
@D3Hunter
Copy link
Contributor

/retest

@joechenrh
Copy link
Contributor Author

/retest

@joechenrh
Copy link
Contributor Author

/retest

@D3Hunter
Copy link
Contributor

/retest

@joechenrh
Copy link
Contributor Author

/retest

1 similar comment
@D3Hunter
Copy link
Contributor

/retest

@ti-chi-bot ti-chi-bot bot merged commit c18eaa7 into pingcap:master Oct 16, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test Indicates a PR is ready to be tested. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants