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

fix(replication): prevent dropped conns during replication #369

Merged
merged 1 commit into from Jun 9, 2023

Conversation

joshuef
Copy link
Contributor

@joshuef joshuef commented Jun 9, 2023

We were seeing a lot of OutboundFialure and closed connections leading to dropped messages during data replication. This was turning up as UnexpectedEof errors when a connection was closed midway through send eg.

Seems like, due to NOT responding to a request (using the protocol wrongly perhaps?) we were causing awaiting connections to error out as the receive stream was dropped unepectedly, causing a knock on to anything else in flight on that same connection.

Description

Summary generated by Reviewpad on 09 Jun 23 02:32 UTC

This pull request fixes dropped messages during data replication due to closed connections from outbound failures. The change includes adding a response to the ReplicateCmd to prevent connection failures and errors in awaiting connections.

@reviewpad reviewpad bot requested a review from bochaco June 9, 2023 02:33
@reviewpad reviewpad bot added Small Pull request is small waiting-for-review labels Jun 9, 2023
We were seeing a lot of OutboundFialure and closed connections leading
to dropped messages during data replication. This was turning up as
UnexpectedEof errors when a connection was closed midway through send
eg.

Seems like, due to _NOT_ responding to a request (using the protocol
wrongly perhaps?) we were causing awaiting connections to error out
as the receive stream was dropped unepectedly, causing a knock on to
anything else in flight on that same connection.
@maqi maqi force-pushed the FixOutboundFailProliferation branch from f527fe0 to 980688f Compare June 9, 2023 13:05
@maqi maqi enabled auto-merge June 9, 2023 13:05
@maqi maqi added this pull request to the merge queue Jun 9, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 9, 2023
@maqi maqi added this pull request to the merge queue Jun 9, 2023
Merged via the queue into maidsafe:main with commit b969fbb Jun 9, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants