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

plan: fix a bug in rebuildRange when enabling prepare-plan-cache. #6637

Merged
merged 9 commits into from May 24, 2018

Conversation

winoros
Copy link
Member

@winoros winoros commented May 24, 2018

It cannot build range successfully if the plan is an index plan.
PTAL @lamxTyler @zz-jason @XuHuaiyu @jackysp

@@ -0,0 +1,51 @@
package plan_test
Copy link
Member

Choose a reason for hiding this comment

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

Need a license.

Copy link
Member

Choose a reason for hiding this comment

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

Will this test case cover this bug? If we revert the modification in common_plans.go, will this case fail?

Copy link
Member Author

Choose a reason for hiding this comment

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

It will fail.

plan/errors.go Outdated
@@ -1,100 +0,0 @@
// Copyright 2018 PingCAP, Inc.
Copy link
Member

Choose a reason for hiding this comment

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

Why remove this file?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a mistake...

@XuHuaiyu
Copy link
Contributor

/run-all-tests

@@ -0,0 +1,65 @@
// Copyright 2017 PingCAP, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/ 2017/ 2018

@winoros winoros added type/bug-fix This PR fixes a bug. all-tests-passed labels May 24, 2018
@jackysp
Copy link
Member

jackysp commented May 24, 2018

I've tested this pr by TPC-C. LGTM

Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

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

LGTM

@alivxxx alivxxx added the status/LGT2 Indicates that a PR has LGTM 2. label May 24, 2018
@ngaut ngaut merged commit cf0e1c9 into pingcap:master May 24, 2018
@winoros winoros deleted the fix-rebuild-range branch May 24, 2018 09:30
@alivxxx
Copy link
Contributor

alivxxx commented May 25, 2018

@winoros Do we need to cherry pick this one to release-2.0?

winoros added a commit to winoros/tidb that referenced this pull request May 30, 2018
…ingcap#6637)

* plan: fix a bug in `rebuildRange` when enabling prepare-plan-cache.
coocood pushed a commit that referenced this pull request May 30, 2018
…6637) (#6692)

* plan: fix a bug in `rebuildRange` when enabling prepare-plan-cache.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2. type/bug-fix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants