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

disttask: refine the error handling interface #44917

Merged
merged 7 commits into from
Jun 26, 2023

Conversation

tangenta
Copy link
Contributor

What problem does this PR solve?

Issue Number: ref #41495

Problem Summary:

What is changed and how it works?

This PR changes the type of error from []byte to error, which is more intuitive. For serialization/deserialization, I use pingcap/errors.MarshalJSON and pingcap/errors.UnmarshalJSON.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

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

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 25, 2023
@hawkingrei
Copy link
Member

/ok-to-test

@ti-chi-bot ti-chi-bot bot added the ok-to-test Indicates a PR is ready to be tested. label Jun 25, 2023
@pingcap pingcap deleted a comment from tiprow bot Jun 25, 2023
@hawkingrei
Copy link
Member

/retest

@hawkingrei
Copy link
Member

/test all

@tangenta
Copy link
Contributor Author

/retest

@pingcap pingcap deleted a comment from tiprow bot Jun 25, 2023
@hawkingrei
Copy link
Member

/test tiprow_fast_test

@hawkingrei
Copy link
Member

/test tiprow_fast_test

@pingcap pingcap deleted a comment from ti-chi-bot bot Jun 25, 2023
@pingcap pingcap deleted a comment from ti-chi-bot bot Jun 25, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jun 25, 2023

@ywqzzy: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

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 kubernetes/test-infra repository.

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jun 26, 2023
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

@ti-chi-bot ti-chi-bot bot added the lgtm label Jun 26, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jun 26, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wjhuang2016, ywqzzy, zimulala

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [wjhuang2016,zimulala]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jun 26, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jun 26, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-06-26 02:53:55.209675863 +0000 UTC m=+589800.610926312: ☑️ agreed by wjhuang2016.
  • 2023-06-26 03:18:15.357925492 +0000 UTC m=+591260.759175941: ☑️ agreed by zimulala.

@ti-chi-bot ti-chi-bot bot merged commit 0f5eb86 into pingcap:master Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test Indicates a PR is ready to be tested. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants