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: no more sleep when meets nonRetryable error #47461

Merged
merged 5 commits into from
Oct 9, 2023

Conversation

Defined2014
Copy link
Contributor

@Defined2014 Defined2014 commented Oct 8, 2023

What problem does this PR solve?

Issue Number: close #47455

Problem Summary:

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)

run SQL below,

create table t ( obj json, arr json, nil json, t json, f json, i json, ui json, f64 json, str json, nul json );
insert into t values ('{\"obj\": 100}', '[-1, 0, 1]', 'null', 'true', 'false', '20200826173501', '20201123', '20200826173501.123456', '\"2020-08-26 17:35:01.123456\"', null);
alter table t modify obj datetime;

alter table return error directly, no more sleep.

  • 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-linked-issue release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed do-not-merge/needs-linked-issue labels Oct 8, 2023
@tiprow
Copy link

tiprow bot commented Oct 8, 2023

Hi @Defined2014. 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/test-infra repository.

// In test and job is cancelling we can ignore the sleep.
if !(intest.InTest && job.IsCancelling()) {
// Or error is non-Retryable.
if !(intest.InTest && job.IsCancelling()) && errorIsRetryable(runJobErr, job) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we remove job.IsCancelling()?

Copy link
Contributor Author

@Defined2014 Defined2014 Oct 8, 2023

Choose a reason for hiding this comment

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

Done. This code also for speed up test before, so I removed it. #41034

@codecov
Copy link

codecov bot commented Oct 8, 2023

Codecov Report

Merging #47461 (6fb21c0) into master (8772821) will increase coverage by 0.5819%.
Report is 4 commits behind head on master.
The diff coverage is 100.0000%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #47461        +/-   ##
================================================
+ Coverage   72.1516%   72.7335%   +0.5819%     
================================================
  Files          1352       1373        +21     
  Lines        401072     407516      +6444     
================================================
+ Hits         289380     296401      +7021     
+ Misses        92450      92324       -126     
+ Partials      19242      18791       -451     
Flag Coverage Δ
integration 39.3245% <20.0000%> (?)
unit 72.1482% <100.0000%> (-0.0034%) ⬇️

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

Components Coverage Δ
dumpling 53.9913% <ø> (ø)
parser 84.6681% <ø> (+0.0107%) ⬆️
br 48.8540% <ø> (-4.3409%) ⬇️

@ti-chi-bot ti-chi-bot bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 8, 2023
Copy link
Contributor

@zimulala zimulala left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Oct 9, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Oct 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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 9, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Oct 9, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-10-09 02:05:10.798524289 +0000 UTC m=+1017908.385634418: ☑️ agreed by zimulala.
  • 2023-10-09 02:31:58.343125041 +0000 UTC m=+1019515.930235186: ☑️ agreed by tangenta.

@ti-chi-bot ti-chi-bot bot merged commit c8a2112 into pingcap:master Oct 9, 2023
@Defined2014 Defined2014 deleted the fix-47455 branch October 9, 2023 03:05
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.

DDL execute too slow when failed.
3 participants