Skip to content

Fix rare fd leaks in follower. #553

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

Merged
merged 1 commit into from
Jul 17, 2025
Merged

Conversation

kjnilsson
Copy link
Contributor

In the case where an append entries rpc is received that does not also validate the log it was possible to leak file handles if the check of the previous index required a read from a disk segment.

@kjnilsson kjnilsson force-pushed the fix-rare-fd-leak-in-follower branch from 4355ef1 to 2ede9e4 Compare July 16, 2025 11:39
@kjnilsson kjnilsson changed the title Fix rare fd leak in follower. Fix rare fd leaks in follower. Jul 16, 2025
In the case where an append entries rpc is received that does not
also validate the log it was possible to leak file handles if
the check of the previous index required a read from a disk segment.

Also fix a potential leak with mismatched terms
@kjnilsson kjnilsson force-pushed the fix-rare-fd-leak-in-follower branch from 2ede9e4 to 66de28e Compare July 16, 2025 11:50
@kjnilsson kjnilsson added this to the 2.6.12 milestone Jul 16, 2025
@kjnilsson kjnilsson added the bug label Jul 16, 2025
@kjnilsson kjnilsson merged commit e51e070 into main Jul 17, 2025
4 checks passed
michaelklishin added a commit that referenced this pull request Jul 24, 2025
michaelklishin added a commit that referenced this pull request Jul 24, 2025
(cherry picked from commit c5efc93)
michaelklishin added a commit that referenced this pull request Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant