Skip to content

Fix leaked opened db handle in smoosh#6016

Merged
nickva merged 1 commit into
mainfrom
fix-smoosh-db-handle-leaking
May 28, 2026
Merged

Fix leaked opened db handle in smoosh#6016
nickva merged 1 commit into
mainfrom
fix-smoosh-db-handle-leaking

Conversation

@nickva
Copy link
Copy Markdown
Contributor

@nickva nickva commented May 27, 2026

smoosh_channel:maybe_remonitor_cpid/3 opened db and never closed it. That left a dangling reference (monitor to it) which prevented that db handle from becoming idle.

We noticed this after inspecting dangling deleted fd handles which were still left open by something. That something turned to be smoosh_channel gen_server.

@nickva nickva force-pushed the fix-smoosh-db-handle-leaking branch from 854b62b to 1149fbf Compare May 27, 2026 22:28
`smoosh_channel:maybe_remonitor_cpid/3` opened db and never closed it. That
left a dangling reference (monitor to it) which prevented that db handle from
becoming idle.

We noticed this after inspecting dangling deleted fd handles which were still
left open by something. That something turned to be smoosh_channel gen_server.
@nickva nickva force-pushed the fix-smoosh-db-handle-leaking branch from 1149fbf to dc72c84 Compare May 28, 2026 02:19
@nickva nickva merged commit 7505692 into main May 28, 2026
63 checks passed
@nickva nickva deleted the fix-smoosh-db-handle-leaking branch May 28, 2026 03: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.

2 participants