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

Return error message to client when chain fails to send/receive #1082

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

rukai
Copy link
Member

@rukai rukai commented Mar 15, 2023

I think this is useful for the reasons I wrote about in the code comment.

However it does come at a performance cost - there is now one extra allocation per incoming message batch. (just for the vec, the Messages themselves do not allocate)

I still think its worth it though.

An easy way to test this new handling is to run a shotover config without a database running at the destination address.

@rukai rukai force-pushed the return_errors_to_client_when_chain_fails branch from 97c0ca8 to d8b0a59 Compare March 15, 2023 04:02
@rukai rukai marked this pull request as draft March 15, 2023 04:15
@rukai rukai force-pushed the return_errors_to_client_when_chain_fails branch from d8b0a59 to fa0206e Compare March 15, 2023 04:55
@shotover shotover deleted a comment from github-actions bot Mar 15, 2023
@rukai rukai marked this pull request as ready for review March 15, 2023 06:26
@rukai rukai merged commit 2ae9e5d into shotover:main Mar 17, 2023
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