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

domain: refine error code for package domain #13033

Merged
merged 9 commits into from
Nov 9, 2019

Conversation

bb7133
Copy link
Member

@bb7133 bb7133 commented Oct 30, 2019

What problem does this PR solve?

Not all the errors in domain package have error code.

What is changed and how it works?

Add them. Related to pingcap/parser#595.

Check List

Tests

  • Unit test

Code changes

  • Has exported variable/fields change

Side effects

  • Breaking backward compatibility

@bb7133 bb7133 added the type/enhancement The issue or PR belongs to an enhancement. label Oct 30, 2019
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

@bb7133 bb7133 force-pushed the bb7133/fix_domain_errcode branch 2 times, most recently from b30f6bb to a9d548e Compare November 4, 2019 04:05
@bb7133
Copy link
Member Author

bb7133 commented Nov 4, 2019

/run-unit-test

jackysp
jackysp previously approved these changes Nov 6, 2019
Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp jackysp added the status/can-merge Indicates a PR has been approved by a committer. label Nov 6, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Nov 6, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 6, 2019

@bb7133 merge failed.

@bb7133
Copy link
Member Author

bb7133 commented Nov 6, 2019

Close this PR temporarily because of PR quota

@bb7133 bb7133 closed this Nov 6, 2019
@bb7133 bb7133 reopened this Nov 7, 2019
@bb7133 bb7133 force-pushed the bb7133/fix_domain_errcode branch 3 times, most recently from 8e3c730 to ec49fbe Compare November 7, 2019 04:16
@codecov
Copy link

codecov bot commented Nov 7, 2019

Codecov Report

Merging #13033 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #13033   +/-   ##
===========================================
  Coverage   80.6663%   80.6663%           
===========================================
  Files           469        469           
  Lines        114500     114500           
===========================================
  Hits          92363      92363           
  Misses        15207      15207           
  Partials       6930       6930

@bb7133
Copy link
Member Author

bb7133 commented Nov 7, 2019

/rebuild

@bb7133
Copy link
Member Author

bb7133 commented Nov 7, 2019

/run-all-tests

Copy link
Contributor

@zimulala zimulala left a comment

Choose a reason for hiding this comment

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

runTestErrorCode test failed in CI. This PR changes the error code, I think we need to change ErrUnknown to ErrInfoSchemaExpired in runTestErrorCode.

@bb7133
Copy link
Member Author

bb7133 commented Nov 8, 2019

/run-unit-test

@bb7133
Copy link
Member Author

bb7133 commented Nov 8, 2019

runTestErrorCode test failed in CI. This PR changes the error code, I think we need to change ErrUnknown to ErrInfoSchemaExpired in runTestErrorCode.

Addressed, thanks

@bb7133
Copy link
Member Author

bb7133 commented Nov 8, 2019

/run-unit-test

@bb7133
Copy link
Member Author

bb7133 commented Nov 8, 2019

/run-all-tests

@bb7133
Copy link
Member Author

bb7133 commented Nov 8, 2019

PTAL @zimulala

@bb7133
Copy link
Member Author

bb7133 commented Nov 8, 2019

/run-all-tests

Copy link
Contributor

@zimulala zimulala left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp
Copy link
Member

jackysp commented Nov 8, 2019

I think it should wait for some PRs which are trying to fix CI.

@zz-jason zz-jason added the status/LGT2 Indicates that a PR has LGTM 2. label Nov 9, 2019
@zz-jason
Copy link
Member

zz-jason commented Nov 9, 2019

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Nov 9, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 9, 2019

@bb7133 merge failed.

@bb7133
Copy link
Member Author

bb7133 commented Nov 9, 2019

/run-all-tests

@bb7133 bb7133 merged commit b3bf319 into pingcap:master Nov 9, 2019
@bb7133 bb7133 deleted the bb7133/fix_domain_errcode branch December 5, 2019 09:40
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. 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.

6 participants