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

DEV-125 - Fix partial append on error append to stream #283

Conversation

w1am
Copy link
Contributor

@w1am w1am commented Feb 8, 2024

Fixed: Issue #250

This PR addresses 2 issues:
It ensures that exceptions especially those arising from broken enumerables and gRPC operations are efficiently propagated back to the caller.

Following from the first point, calls to RequestStream.WriteAsync could throw an RpcException in scenarios where wrong credentials were provided. This occurs before RequestStream.CompleteAsync calls were made to append events, leading to unhandled exceptions. Therefore, the response.RequestStream in the TypedExceptionInterceptor was enhanced to address the race condition issue by ensuring exceptions are properly caught and translated. Credit goes to @josephcummings!

Copy link

linear bot commented Feb 8, 2024

@w1am w1am force-pushed the w1am/dev-125-appendtostream-can-write-a-subset-of-events-when-errors branch 2 times, most recently from 0fe8ffa to 1159799 Compare February 8, 2024 10:10
@w1am w1am marked this pull request as draft February 8, 2024 10:20
@w1am w1am force-pushed the w1am/dev-125-appendtostream-can-write-a-subset-of-events-when-errors branch 12 times, most recently from ec749e7 to e2e1947 Compare February 13, 2024 05:16
@w1am w1am marked this pull request as ready for review February 13, 2024 05:16
@w1am w1am force-pushed the w1am/dev-125-appendtostream-can-write-a-subset-of-events-when-errors branch from e2e1947 to 9be6e8a Compare February 13, 2024 05:27
@w1am w1am force-pushed the w1am/dev-125-appendtostream-can-write-a-subset-of-events-when-errors branch from e4c580d to 5b02572 Compare February 14, 2024 11:07
@w1am w1am force-pushed the w1am/dev-125-appendtostream-can-write-a-subset-of-events-when-errors branch from 160e980 to f28f2c3 Compare February 15, 2024 06:44
Copy link
Contributor

@josephcummings josephcummings left a comment

Choose a reason for hiding this comment

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

👍

@josephcummings josephcummings changed the title Fix partial append on error append to stream DEV-125 - Fix partial append on error append to stream Feb 26, 2024
@josephcummings josephcummings merged commit 1173149 into master Feb 26, 2024
66 checks passed
@josephcummings josephcummings deleted the w1am/dev-125-appendtostream-can-write-a-subset-of-events-when-errors branch February 26, 2024 13:48
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