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

*: add the error check #8770

Merged
merged 5 commits into from
Dec 24, 2018
Merged

*: add the error check #8770

merged 5 commits into from
Dec 24, 2018

Conversation

zimulala
Copy link
Contributor

@zimulala zimulala commented Dec 21, 2018

What problem does this PR solve?

Add the error check

What is changed and how it works?

Return the error
Check the error information

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes


This change is Reviewable

@zimulala zimulala added the type/enhancement The issue or PR belongs to an enhancement. label Dec 21, 2018
@@ -1083,6 +1083,9 @@ func (e *MaxOneRowExec) Next(ctx context.Context, chk *chunk.Chunk) error {

childChunk := e.children[0].newFirstChunk()
err = e.children[0].Next(ctx, childChunk)
if err != nil {
return errors.Trace(err)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

So that was an ignored error. A good demonstration of using the error check.

@gregwebs
Copy link
Contributor

3 ignored errors! Thanks, LGTM, would love to have this running in the CI.

@shenli
Copy link
Member

shenli commented Dec 21, 2018

LGTM

Copy link
Contributor

@winkyao winkyao left a comment

Choose a reason for hiding this comment

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

LGTM

@shenli shenli added the status/LGT2 Indicates that a PR has LGTM 2. label Dec 23, 2018
@shenli
Copy link
Member

shenli commented Dec 23, 2018

/run-all-tests

@shenli
Copy link
Member

shenli commented Dec 23, 2018

@zimulala We need to cherry-pick this to the release branches.

@zz-jason zz-jason merged commit bd69b15 into pingcap:master Dec 24, 2018
@zimulala zimulala deleted the check-err branch December 25, 2018 02:22
zimulala added a commit to zimulala/tidb that referenced this pull request Dec 25, 2018
jackysp pushed a commit that referenced this pull request Dec 25, 2018
zimulala added a commit to zimulala/tidb that referenced this pull request Dec 25, 2018
ngaut pushed a commit that referenced this pull request Dec 25, 2018
yu34po pushed a commit to yu34po/tidb that referenced this pull request Jan 2, 2019
tiancaiamao added a commit that referenced this pull request Jan 2, 2019
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/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants