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

[v22.3.x] Do not drop connections on logical Raft heartbeat errors #10647

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #10341

In Raft we have a mechanism that drops the connection if there is a
particular number of failed heartbeats. The connection should only be
dropped if it is unresponsive. Currently all the errors in heartbeat
responses result in a connection being dropped.

Changed the implementation to only mark heartbeats as failed if the
whole request failed with timeout. This way a connection will only be
dropped when the node is not responsive.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit c9a774c)
@vbotbuildovich vbotbuildovich added this to the v22.3.x-next milestone May 9, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label May 9, 2023
@bharathv bharathv marked this pull request as ready for review May 10, 2023 17:28
@bharathv bharathv merged commit a258a0a into redpanda-data:v22.3.x May 10, 2023
24 of 26 checks passed
@vshtokman vshtokman modified the milestones: v22.3.x-next, v22.3.18 May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants