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

planner: add warnings about joins when tidb_enforce_mpp is enabled. (#26246) #26272

Merged
merged 17 commits into from
Jul 23, 2021

Conversation

ti-srebot
Copy link
Contributor

@ti-srebot ti-srebot commented Jul 15, 2021

cherry-pick #26246 to release-5.1
You can switch your code base to this Pull Request by using git-extras:

# In tidb repo:
git pr https://github.com/pingcap/tidb/pull/26272

After apply modifications, you can push your change to this PR via:

git push [email protected]:ti-srebot/tidb.git pr/26272:release-5.1-76c5fd0e26b1

What problem does this PR solve?

Issue Number: close pingcap/tiflash#1905

Problem Summary: This is the follow-up of #25302, add warnings when tidb_enforce_mpp is enabled but mpp is blocked.

What is changed and how it works?

What's Changed: adding warnings for join.

How it Works:

Check List

Tests

  • Unit test
  • Integration test

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

  • No release note

@ti-srebot ti-srebot requested a review from a team as a code owner July 15, 2021 08:23
@ti-srebot ti-srebot requested review from time-and-fate and removed request for a team July 15, 2021 08:23
@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot ti-srebot added sig/planner SIG: Planner size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. type/5.1-cherry-pick labels Jul 15, 2021
@ti-srebot
Copy link
Contributor Author

@LittleFall you're already a collaborator in bot's repo.

@zhouqiang-cl zhouqiang-cl added the cherry-pick-approved Cherry pick PR approved by release team. label Jul 20, 2021
@LittleFall
Copy link
Contributor

2021-07-21T11:43:38.287Z]
[2021-07-21T11:43:38.287Z] ----------------------------------------------------------------------
[2021-07-21T11:43:38.287Z] FAIL: analyze_test.go:934: testSerialSuite2.TestIssue20874
[2021-07-21T11:43:38.287Z]
[2021-07-21T11:43:38.287Z] analyze_test.go:964:
[2021-07-21T11:43:38.287Z] tk.MustQuery("show stats_topn where db_name = 'test' and table_name = 't'").Sort().Check(testkit.Rows(
[2021-07-21T11:43:38.287Z] "test t a 0 \x02\xd2 1",
[2021-07-21T11:43:38.287Z] "test t a 0 \x0e\x0f 1",
[2021-07-21T11:43:38.287Z] "test t a 0 \x0e3 1",
[2021-07-21T11:43:38.287Z] "test t b 0 \x00A 1",
[2021-07-21T11:43:38.287Z] "test t b 0 \x00C 2",
[2021-07-21T11:43:38.287Z] "test t idxa 1 \x02\xd2 1",
[2021-07-21T11:43:38.287Z] "test t idxa 1 \x0e\x0f 1",
[2021-07-21T11:43:38.287Z] "test t idxa 1 \x0e3 1",
[2021-07-21T11:43:38.287Z] "test t idxb 1 \x00A 1",
[2021-07-21T11:43:38.287Z] "test t idxb 1 \x00C 2",
[2021-07-21T11:43:38.287Z] ))
[2021-07-21T11:43:38.287Z] /home/jenkins/agent/workspace/tidb_ghpr_check/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:63:
[2021-07-21T11:43:38.287Z] res.c.Assert(resBuff.String(), check.Equals, needBuff.String(), res.comment)
[2021-07-21T11:43:38.287Z] ... obtained string = "[test t b 0 \x00C 2]\n"
[2021-07-21T11:43:38.287Z] ... expected string = "" +
[2021-07-21T11:43:38.287Z] ... "[test t a 0 \x02\xd2 1]\n" +
[2021-07-21T11:43:38.287Z] ... "[test t a 0 \x0e\x0f 1]\n" +
[2021-07-21T11:43:38.287Z] ... "[test t a 0 \x0e3 1]\n" +
[2021-07-21T11:43:38.287Z] ... "[test t b 0 \x00A 1]\n" +
[2021-07-21T11:43:38.287Z] ... "[test t b 0 \x00C 2]\n" +
[2021-07-21T11:43:38.287Z] ... "[test t idxa 1 \x02\xd2 1]\n" +
[2021-07-21T11:43:38.287Z] ... "[test t idxa 1 \x0e\x0f 1]\n" +
[2021-07-21T11:43:38.287Z] ... "[test t idxa 1 \x0e3 1]\n" +
[2021-07-21T11:43:38.287Z] ... "[test t idxb 1 \x00A 1]\n" +
[2021-07-21T11:43:38.287Z] ... "[test t idxb 1 \x00C 2]\n"
[2021-07-21T11:43:38.287Z] ... sql:show stats_topn where db_name = 'test' and table_name = 't', args:[]
[2021-07-21T11:43:38.287Z]

@LittleFall
Copy link
Contributor

2021-07-21T11:43:38.353Z] FAIL: show_stats_test.go:216: testShowStatsSuite.TestShowAnalyzeStatus
[2021-07-21T11:43:38.353Z]
[2021-07-21T11:43:38.353Z] show_stats_test.go:251:
[2021-07-21T11:43:38.353Z] c.Assert(len(result.Rows()), Equals, 1)
[2021-07-21T11:43:38.353Z] ... obtained int = 2
[2021-07-21T11:43:38.353Z] ... expected int = 1
[2021-07-21T11:43:38.353Z]

Copy link
Contributor

@LittleFall LittleFall 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
Copy link
Member

@LittleFall: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments.

In response to this:

lgtm

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.

@LittleFall LittleFall removed the sig/planner SIG: Planner label Jul 22, 2021
Copy link
Contributor

@LittleFall LittleFall 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 Jul 22, 2021
@LittleFall
Copy link
Contributor

[2021-07-21T11:43:36.886Z] FAIL: analyze_test.go:584: testSuite1.TestAnalyzeIncremental
[2021-07-21T11:43:36.886Z]
[2021-07-21T11:43:36.886Z] analyze_test.go:589:
[2021-07-21T11:43:36.886Z] s.testAnalyzeIncremental(tk, c)
[2021-07-21T11:43:36.886Z] /home/jenkins/agent/workspace/tidb_ghpr_check/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:63:
[2021-07-21T11:43:36.886Z] res.c.Assert(resBuff.String(), check.Equals, needBuff.String(), res.comment)
[2021-07-21T11:43:36.886Z] ... obtained string = ""
[2021-07-21T11:43:36.886Z] ... expected string = "" +
[2021-07-21T11:43:36.886Z] ... "[test t p0 a 0 0 1 1 1 1 0]\n" +
[2021-07-21T11:43:36.886Z] ... "[test t p0 idx 1 0 1 1 1 1 0]\n"
[2021-07-21T11:43:36.886Z] ... sql:show stats_buckets, args:[]

Copy link
Contributor

@windtalker windtalker 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
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • LittleFall
  • windtalker

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 the status/LGT2 Indicates that a PR has LGTM 2. label Jul 22, 2021
@zhouqiang-cl
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

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

Commit hash: 37c0580

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 22, 2021
@LittleFall
Copy link
Contributor

LittleFall commented Jul 22, 2021

waiting #25741

@zhouqiang-cl
Copy link
Contributor

/merge

@ti-chi-bot ti-chi-bot removed the status/can-merge Indicates a PR has been approved by a committer. label Jul 23, 2021
@LittleFall
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

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

Commit hash: e4cfcbe

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 23, 2021
@zhouqiang-cl
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

@ti-srebot: 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.

@zhouqiang-cl
Copy link
Contributor

/run-unit-tests

1 similar comment
@zhouqiang-cl
Copy link
Contributor

/run-unit-tests

@ti-chi-bot ti-chi-bot merged commit 97650e8 into pingcap:release-5.1 Jul 23, 2021
@LittleFall LittleFall deleted the release-5.1-76c5fd0e26b1 branch July 23, 2021 09:34
@zhouqiang-cl zhouqiang-cl added this to the v5.1.1 milestone Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Cherry pick PR approved by release team. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/5.1-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants