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

Reset backoff in replicate stream attempts only after an ack #575

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

merlimat
Copy link
Collaborator

When the replicate stream fails continuously on a follower, we are retrying every 100ms without exponential backoff.

The reason is that we're resetting the backoff when a new stream is re-established, although the acks on the stream are going to fail again.

Instead of resetting the backoff when the stream is re-established, wait for the first successful ack to come back before resetting.

@mattisonchao mattisonchao merged commit 6d2bf5d into streamnative:main Nov 16, 2024
5 checks passed
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.

2 participants