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: change finishedWritingNeedImport to importStarted #53643

Merged
merged 1 commit into from
May 29, 2024

Conversation

lance6716
Copy link
Contributor

@lance6716 lance6716 commented May 29, 2024

What problem does this PR solve?

Issue Number: close #53641

Problem Summary:

What changed and how does it work?

in the old code, finishedWritingNeedImport checks closedEngine != nil which stands for "there's a pending engine to be imported". Now it checks openedEngine == nil which stands for "all writing of this engine is finished". The difference is if retry happens after importing engine is finished, closedEngine is assigned to nil, and old finishedWritingNeedImport returns false but importStarted returns true

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 do-not-merge/needs-triage-completed release-note-none Denotes a PR that doesn't merit a release note. labels May 29, 2024
@lance6716 lance6716 requested a review from D3Hunter May 29, 2024 06:31
@ti-chi-bot ti-chi-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 29, 2024
@lance6716 lance6716 requested a review from tangenta May 29, 2024 06:31
Copy link

tiprow bot commented May 29, 2024

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

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label May 29, 2024
@D3Hunter
Copy link
Contributor

/check-issue-triage-complete

Copy link

codecov bot commented May 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.5592%. Comparing base (afd2343) to head (7470f75).
Report is 2 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #53643        +/-   ##
================================================
+ Coverage   72.5370%   74.5592%   +2.0221%     
================================================
  Files          1506       1506                
  Lines        430741     431163       +422     
================================================
+ Hits         312447     321472      +9025     
+ Misses        98968      89748      -9220     
- Partials      19326      19943       +617     
Flag Coverage Δ
integration 49.2651% <83.3333%> (?)
unit 71.4332% <50.0000%> (-0.0964%) ⬇️

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

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

Copy link

ti-chi-bot bot commented May 29, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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

ti-chi-bot bot commented May 29, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-05-29 06:34:41.493407237 +0000 UTC m=+2844635.250542810: ☑️ agreed by D3Hunter.
  • 2024-05-29 07:26:24.580497977 +0000 UTC m=+2847738.337633551: ☑️ agreed by tangenta.

@ti-chi-bot ti-chi-bot bot merged commit da49e13 into pingcap:master May 29, 2024
23 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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestAddIndexFinishImportError is invalid
3 participants