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(journal): Correctly handle client socket closing during compaction #4840

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Jun 12, 2024

Previously outbound sockets were not properly recorded as open in the
compactor, and thus closed sockets were not properly removed from the
journal.

This change implements tracking for sockets after connecting to them.

Closes #4839

@theduke theduke force-pushed the issue-4839-socket-compaction branch from 5862826 to 2df151c Compare June 12, 2024 16:50
@theduke theduke requested a review from john-sharratt June 12, 2024 16:57
Copy link
Contributor

@john-sharratt john-sharratt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to comment out all unit tests?

theduke added 2 commits June 13, 2024 00:13
Previously outbound sockets were not properly recorded as open in the
compactor, and thus closed sockets were not properly removed from the
journal.

This change implements tracking for sockets after connecting to them.
@theduke theduke force-pushed the issue-4839-socket-compaction branch from 2df151c to d3ea1c4 Compare June 12, 2024 22:13
@theduke
Copy link
Contributor Author

theduke commented Jun 13, 2024

Did you mean to comment out all unit tests?

They were already commented out, I un-commented the runner and added a new test.

Followup should fix up the other tests.
I had a brief look, but they require some work.

@theduke
Copy link
Contributor Author

theduke commented Jun 17, 2024

@john-sharratt for posterity, I phrased it a bit incorrectly: before, non of the tests were running because they were gated behind the journal feature flag, which is probably a copy paste leftover (from the wasix crate).

The journal crate doesn't have a journal feature flag, so the whole test module was inactive.

@theduke theduke merged commit 9bbee2d into main Jun 17, 2024
62 checks passed
@theduke theduke deleted the issue-4839-socket-compaction branch June 17, 2024 08:11
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.

Journal compaction: Outbound sockets not handled
3 participants