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

Convert ConverterError to InvalidArgument in standard visibility parser #2437

Merged
merged 2 commits into from
Feb 2, 2022

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Jan 29, 2022

What changed?
Convert ConverterError to InvalidArgument in standard visibility parser.

Why?
Go errors are converted to unknown error which is retryable by SDK. This leads to bad experience when user makes a mistake in Query parameter (or --query flag in tctl) and instead of getting appropriate error with message it gets "context deadline exceeded" error because SDK retries the error for 10 seconds and then times out.

How did you test it?
Run tctl wf list --querymanually.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested review from a team and meiliang86 January 29, 2022 23:11
@yiminc
Copy link
Member

yiminc commented Jan 30, 2022

another approach is to have a central place (grpc interceptor) that convert any internal error type to public error type.

@alexshtin
Copy link
Member Author

We started the discussion on how to generate, pass, and handle errors in a right way but I don't remember that we finished it.

@alexshtin alexshtin force-pushed the feature/fix-converter-error branch from f3f0b1f to 1cf5370 Compare February 2, 2022 04:15
@alexshtin alexshtin requested a review from a team as a code owner February 2, 2022 04:15
@alexshtin alexshtin enabled auto-merge (squash) February 2, 2022 04:15
@alexshtin alexshtin merged commit 3eb7730 into temporalio:master Feb 2, 2022
@alexshtin alexshtin deleted the feature/fix-converter-error branch February 2, 2022 05:03
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.

3 participants