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: refine fatal log when upgrade failed because of tidb_enable_dist_task #53392

Merged
merged 4 commits into from
May 22, 2024

Conversation

tangenta
Copy link
Contributor

@tangenta tangenta commented May 20, 2024

What problem does this PR solve?

Problem Summary:

  • &*job is equivalent to job, it should use job.Clone() to create another instance.
  • The log of upgrade failed is not clear.
  • There is a typo in log "task scheduler exist".

What changed and how does it work?

Fix above three problems.

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 size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 20, 2024
Copy link

tiprow bot commented May 20, 2024

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

@tangenta
Copy link
Contributor Author

/ok-to-test

Copy link

codecov bot commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.6049%. Comparing base (2e756fc) to head (9785fd5).
Report is 8 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #53392        +/-   ##
================================================
+ Coverage   72.5047%   74.6049%   +2.1001%     
================================================
  Files          1505       1505                
  Lines        429838     430753       +915     
================================================
+ Hits         311653     321363      +9710     
+ Misses        98860      89451      -9409     
- Partials      19325      19939       +614     
Flag Coverage Δ
integration 49.1569% <50.0000%> (?)
unit 71.3401% <100.0000%> (-0.0529%) ⬇️

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

Components Coverage Δ
dumpling 53.9957% <ø> (ø)
parser ∅ <ø> (∅)
br 50.4130% <ø> (+9.0259%) ⬆️

@tangenta
Copy link
Contributor Author

/retest

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.

rest lgtm

// &*job clones a stub job from the ActionCreateTables job
stubJob := &*job
// it clones a stub job from the ActionCreateTables job
stubJob := job.Clone()
Copy link
Contributor

Choose a reason for hiding this comment

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

does CtxVars matters here? it's not cloned

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CtxVars is only used by "reorg partition" and "rename tables", it is not used in "create tables".

Copy link

ti-chi-bot bot commented May 21, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-05-21 08:04:00.959749397 +0000 UTC m=+2158794.716884963: ☑️ agreed by wjhuang2016.
  • 2024-05-21 08:10:24.204735482 +0000 UTC m=+2159177.961871055: ☑️ agreed by D3Hunter.

pkg/session/bootstrap.go Outdated Show resolved Hide resolved
@easonn7
Copy link

easonn7 commented May 21, 2024

/approve

Copy link

ti-chi-bot bot commented May 21, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: D3Hunter, easonn7, 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 the approved label May 21, 2024
@hawkingrei
Copy link
Member

/retest

1 similar comment
@tangenta
Copy link
Contributor Author

/retest

@ti-chi-bot ti-chi-bot bot merged commit d1b8c5b into pingcap:master May 22, 2024
23 checks passed
RidRisR pushed a commit to RidRisR/tidb that referenced this pull request May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test release-note-none size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. skip-issue-check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants