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

rfc: refine error handling #24

Merged
merged 11 commits into from
Jan 13, 2022
Merged

Conversation

YangKeao
Copy link
Member

@YangKeao YangKeao commented Oct 9, 2021

Signed-off-by: YangKeao yangkeao@chunibyo.icu

rendered version

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
@YangKeao YangKeao changed the title refine error handling rfc: refine error handling Oct 12, 2021
@YangKeao YangKeao requested a review from STRRL October 12, 2021 05:53
text/2021-09-27-refine-error-handling.md Show resolved Hide resolved
text/2021-09-27-refine-error-handling.md Outdated Show resolved Hide resolved
text/2021-09-27-refine-error-handling.md Outdated Show resolved Hide resolved
text/2021-09-27-refine-error-handling.md Show resolved Hide resolved
text/2021-09-27-refine-error-handling.md Outdated Show resolved Hide resolved
text/2021-09-27-refine-error-handling.md Show resolved Hide resolved
`r.Recorder.Event` to send kubernetes event if needed. The `recorder.Failed` is
a simple representation of error event.

#### Inside a grpc function implementation
Copy link
Member

Choose a reason for hiding this comment

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

What should I do with "Inside chaos dashboard restful API server"? ❤️

Copy link
Member

Choose a reason for hiding this comment

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

I think it's better to talk about errors in grpc in two chapter:

  • build and return errors in grpc server-side
  • resolve errors in grpc client-side

How do you think about it?

Copy link
Member Author

Choose a reason for hiding this comment

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

What should I do with "Inside chaos dashboard restful API server"? ❤️

Done.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's better to talk about errors in grpc in two chapter:

* build and return errors in grpc server-side

* resolve errors in grpc client-side

How do you think about it?

The total RFC is organized as "How to handle an error" and "How an error is consumed finally". They are generally the same with your proposal.

@STRRL STRRL mentioned this pull request Dec 7, 2021
51 tasks
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Copy link
Member

@cwen0 cwen0 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@STRRL STRRL left a comment

Choose a reason for hiding this comment

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

LGTM!

@STRRL
Copy link
Member

STRRL commented Jan 13, 2022

/merge

@STRRL STRRL merged commit a9a0f59 into chaos-mesh:main Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants