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

Unwrap CompletionException in GrpcClient #298

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

marcuslyth
Copy link
Contributor

@marcuslyth marcuslyth commented Jan 10, 2025

GrpcClient expects Exceptions of a specific type but as it is right now it will not handle any exceptions as they are propagated as CompletionException

This will not solve any similar issues for any other class using ClientTelemetry, and a better solution would probably be to never wrap the exception, however that would require more intrusive changes to the future chain.

Fixes #297

@CLAassistant
Copy link

CLAassistant commented Jan 10, 2025

CLA assistant check
All committers have signed the CLA.

@YoEight
Copy link
Member

YoEight commented Jan 21, 2025

Hi @marcuslyth, thank you for your contribution!

Great catch. That said, I noticed that your patch will conflict with #295. To ensure you remain credited as the original author of the fix, I’d prefer not to resolve it directly in #295. Once #295 is merged, would you mind rebasing your work onto the trunk branch?

Thanks again for your time and effort!

@marcuslyth
Copy link
Contributor Author

Hi @marcuslyth, thank you for your contribution!

Great catch. That said, I noticed that your patch will conflict with #295. To ensure you remain credited as the original author of the fix, I’d prefer not to resolve it directly in #295. Once #295 is merged, would you mind rebasing your work onto the trunk branch?

Thanks again for your time and effort!

You are more than welcome!

Sure thing, as soon as #295 have been merged I can rebase my change.

@YoEight
Copy link
Member

YoEight commented Jan 23, 2025

Hey @marcuslyth, #295 is finally merged. Could you rebase your branch?

GrpcClient expects Exceptions of a specific type but as it is right now it will not handle any exceptions as they are propagated as CompletionException
This will not solve any similar issues for any other class using ClientTelemetry, and a better solution would probably be to never wrap the exception, however that would require more intrusive changes to the future chain.
Fixes kurrent-io#287
@marcuslyth marcuslyth marked this pull request as ready for review January 23, 2025 15:43
@marcuslyth
Copy link
Contributor Author

marcuslyth commented Jan 23, 2025

@YoEight

Done!

@YoEight
Copy link
Member

YoEight commented Jan 24, 2025

After all you rebased from master, did you patch is still behaving properly?

@marcuslyth
Copy link
Contributor Author

@YoEight

After all you rebased from master, did you patch is still behaving properly?

Yes, I have tested it both on unit level and by building the client and using it in one of our services with a three node setup and it works as expected.

@YoEight YoEight merged commit 5e86ba6 into kurrent-io:trunk Jan 27, 2025
37 of 39 checks passed
@YoEight
Copy link
Member

YoEight commented Jan 27, 2025

Thanks for your work!

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.

Exceptions are not properly handled in GrpcClient
3 participants