Skip to content

tests: test for filestore fd exhaustion - #3160

Merged
catenacyber merged 1 commit into
OISF:masterfrom
jasonish:filestore-fd-exhaustion/v1
Jul 13, 2026
Merged

tests: test for filestore fd exhaustion#3160
catenacyber merged 1 commit into
OISF:masterfrom
jasonish:filestore-fd-exhaustion/v1

Conversation

@jasonish

Copy link
Copy Markdown
Member

Test that we don't leak file descriptors when configured to not keep any
open.

Test that we don't leak file descriptors when configured to not keep any
open.
@catenacyber

Copy link
Copy Markdown
Collaborator

Is this meant to pass @jasonish ?

@jasonish

jasonish commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

Is this meant to pass @jasonish ?

Yes. It tests a regression in one version of OISF/suricata#15634, and should prevent that regression from happening again.

@catenacyber catenacyber added the tests pass These new tests should pass label Jun 16, 2026
@catenacyber

Copy link
Copy Markdown
Collaborator

Test does not fail locally at 8a4eea4 for me

@jasonish

Copy link
Copy Markdown
Member Author

Test does not fail locally at 8a4eea4 for me

It fails on this PR: OISF/suricata#15607

But the idea is still sound. That PR started to leak file descriptors, and we didn't have a test to catch that. This test will ensure future refactors won't.

@catenacyber catenacyber left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good thanks Jason

@catenacyber
catenacyber merged commit 4e5ef51 into OISF:master Jul 13, 2026
14 checks passed
@jasonish
jasonish deleted the filestore-fd-exhaustion/v1 branch August 19, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests pass These new tests should pass

Development

Successfully merging this pull request may close these issues.

2 participants