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

test(dm): inject error to a not-auto-resume source #6624

Merged
merged 3 commits into from
Aug 8, 2022

Conversation

lance6716
Copy link
Contributor

Signed-off-by: lance6716 lance6716@gmail.com

What problem does this PR solve?

Issue Number: close #6618

What is changed and how it works?

mysql-replica-2 has turned off auto-resume, we use its worker to inject failpoint

Check List

Tests

  • No code

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

`None`.

Signed-off-by: lance6716 <lance6716@gmail.com>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Aug 5, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • lichunzhu

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added needs-cherry-pick-release-5.3 Should cherry pick this PR to release-5.3 branch. needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. needs-cherry-pick-release-6.2 Should cherry pick this PR to release-6.2 branch. release-note-none Denotes a PR that doesn't merit a release note. labels Aug 5, 2022
@lance6716
Copy link
Contributor Author

/cc @GMHDBJD @buchuitoudegou

@ti-chi-bot ti-chi-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 5, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 5, 2022

Codecov Report

Merging #6624 (5f6be53) into master (6290709) will decrease coverage by 0.2185%.
The diff coverage is 50.8430%.

Flag Coverage Δ
cdc 65.8421% <59.9726%> (-0.2709%) ⬇️
dm 52.0450% <54.4117%> (+0.0087%) ⬆️
engine 62.5273% <40.2077%> (-1.2144%) ⬇️

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

@@               Coverage Diff                @@
##             master      #6624        +/-   ##
================================================
- Coverage   59.4214%   59.2028%   -0.2186%     
================================================
  Files           763        780        +17     
  Lines         87418      88418      +1000     
================================================
+ Hits          51945      52346       +401     
- Misses        30894      31429       +535     
- Partials       4579       4643        +64     

@lance6716
Copy link
Contributor Author

/cc @GMHDBJD @buchuitoudegou

@@ -308,7 +308,7 @@ function DM_DROP_COLUMN_EXEC_ERROR() {
function DM_DROP_COLUMN_ALL_DONE_CASE() {
# get worker of source1
w="1"
got=$(grep -a "mysql-replica-01" $WORK_DIR/worker1/log/dm-worker.log | wc -l)
got=$(grep -a "mysql-replica-02" $WORK_DIR/worker1/log/dm-worker.log | wc -l)
Copy link
Contributor

Choose a reason for hiding this comment

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

If worker1 doesn't contain "mysql-replica-02" (which might potentially mean it contains "mysql-replica-01") then w="2"? I assume the previous code is more compatible with the comment above, "get worker of souce1".😵

dm/tests/shardddl2/run.sh Outdated Show resolved Hide resolved
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 8, 2022
@lance6716
Copy link
Contributor Author

/cc @lichunzhu

Copy link
Contributor

@lichunzhu lichunzhu 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 removed the status/LGT1 Indicates that a PR has LGTM 1. label Aug 8, 2022
Copy link
Contributor

@lichunzhu lichunzhu 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 added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 8, 2022
@lichunzhu
Copy link
Contributor

@buchuitoudegou Sorry I errorly choose Request for change. Could you please help approve again?

@lance6716 lance6716 added the require-LGT1 Indicates that the PR requires an LGTM. label Aug 8, 2022
@lichunzhu
Copy link
Contributor

/merge

1 similar comment
@lance6716
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 5f6be53

1 similar comment
@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 5f6be53

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 8, 2022
@ti-chi-bot
Copy link
Member

@lance6716: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

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 ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot merged commit 1e7b840 into pingcap:master Aug 8, 2022
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Aug 8, 2022
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #6655.

ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Aug 8, 2022
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #6656.

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #6657.

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #6658.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cherry-pick-release-5.3 Should cherry pick this PR to release-5.3 branch. needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. needs-cherry-pick-release-6.2 Should cherry pick this PR to release-6.2 branch. release-note-none Denotes a PR that doesn't merit a release note. require-LGT1 Indicates that the PR requires an LGTM. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

query-status test execute .* error count: 0 != expected: 1
5 participants