Skip to content

connection: clean up failed heartbeat sends#876

Draft
dkropachev wants to merge 2 commits intoscylladb:masterfrom
dkropachev:dk/heartbeat-send-failure-cleanup
Draft

connection: clean up failed heartbeat sends#876
dkropachev wants to merge 2 commits intoscylladb:masterfrom
dkropachev:dk/heartbeat-send-failure-cleanup

Conversation

@dkropachev
Copy link
Copy Markdown
Collaborator

@dkropachev dkropachev commented May 6, 2026

Fixes #875.

Heartbeat sends can fail after a request id has already been reserved. This change keeps the request-id pool and in-flight accounting consistent across that failure path, and avoids double-releasing the slot on the control-connection branch.

Changes:

  • preserve heartbeat cleanup when send_msg() fails
  • only release the in-flight slot directly for control connections
  • add a regression test for a failed heartbeat send

@dkropachev dkropachev force-pushed the dk/heartbeat-send-failure-cleanup branch from 892831d to 358e016 Compare May 7, 2026 06:50
@dkropachev dkropachev self-assigned this May 7, 2026
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.

connection: clean up failed heartbeat sends

1 participant