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

feat(pubsub/pstest)!: Add status code to error injection. #2926

Merged
merged 1 commit into from Sep 28, 2020

Conversation

zhongduo
Copy link
Contributor

@zhongduo zhongduo commented Sep 28, 2020

A status code is added into errorInjectionReactor, this is necessary
as the retry setting for some calls depends on the error code. Also
the errorInjectionReactor is not exported. Note that the previous
version is same as having an Unknown code as the server will always
wrap the error to a proper status error.

BREAKING CHANGE: this will invalidate the previous exported
ErrorInjectionReactor struct and WithErrorInjection function.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 28, 2020
@zhongduo
Copy link
Contributor Author

/assign @hongalex

A status code is added into errorInjectionReactor, this is necessary
as the retry setting for some calls depends on the error code. Also
the errorInjectionReactor is not exported. Note that the previous
version is same as having an Unknown code as the server will always
wrap the error to a proper status error.
@hongalex hongalex changed the title feat(pubsub/pstest): Add status code to error injection. feat(pubsub/pstest)!: Add status code to error injection. Sep 28, 2020
@hongalex hongalex self-requested a review September 28, 2020 20:09
@hongalex hongalex added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 28, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 28, 2020
@hongalex hongalex merged commit b084dce into googleapis:master Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants