executor: fix scatter region timeout issues and "show processlist" display issues#12057
Merged
sre-bot merged 4 commits intopingcap:masterfrom Sep 17, 2019
Merged
executor: fix scatter region timeout issues and "show processlist" display issues#12057sre-bot merged 4 commits intopingcap:masterfrom
sre-bot merged 4 commits intopingcap:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12057 +/- ##
=========================================
Coverage 81.492% 81.492%
=========================================
Files 457 457
Lines 101448 101448
=========================================
Hits 82672 82672
Misses 12971 12971
Partials 5805 5805 |
Contributor
Author
|
PTAL @crazycs520 @bb7133 @winkyao |
bb7133
reviewed
Sep 10, 2019
| func (e *SplitIndexRegionExec) Open(ctx context.Context) error { | ||
| return e.splitIndexRegion(ctx) | ||
| func (e *SplitIndexRegionExec) Open(ctx context.Context) (err error) { | ||
| e.splitIdxKeys, err = e.getSplitIdxKeys() |
Member
There was a problem hiding this comment.
Why moving getSplitIdxKeys() to Open?
Contributor
Author
There was a problem hiding this comment.
Because we do some checks in getSplitIdxKeys, if put it to Next some test cases will be failed and I think best to put it before Next.
Contributor
|
/run-all-tests |
Contributor
Author
|
Related PR #6861 |
zimulala
added a commit
to zimulala/tidb
that referenced
this pull request
Sep 24, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Fix a single scatter region timeout does not exit
When processing "split table/index", the result of executing "show processlist" is as follows:
What is changed and how it works?
Add a check when encounter timeout error. And update logs.
Put the operations of splitting and scattering region into
Next. After the PR:Check List
Tests